Hello, I've made this simple stock to find alive players in a imaginary box. Box color is white as default.
Usage:
Code: Select all
/* Find player in box
*
* @param (float/vector) flVecBoxOrigin Origin of the box at where will be created
* @param (float) flBoxSize Size of the box
* @param (int) iDisplayBox Time in 0.1s that the box will be stay displayed (0 doesn't show)
* @param (int) iIgnoredPlayer Player index that won't will be checked (0 doesn't skip anyone)
*
* @return (int) First player found index, 0 if no one was found.
*/
stock findPlayerInBox(const Float:flVecOrigin[3], Float:flBoxSize, iDisplayBox=0, iIgnoredPlayer=0)