09.04.2013, 13:44
When you type a command "/rob" just start a for loop which gonna count your server slots or max players (default is: 500) and then get your position to local float variables and check with function:
Is any player is in your range value from the function above, check IsPlayerInRangeOfPoint parameters in here:
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
And then just display player names/id's in dialog, chat box or anything else.
@down, it's gonna display one player.
pawn Код:
IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
And then just display player names/id's in dialog, chat box or anything else.
@down, it's gonna display one player.