Change /Rob <ID> into /Rob (GetClosestPlayer)
#2

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:

pawn Код:
IsPlayerInRangeOfPoint
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)