29.12.2012, 09:16
Lets start off with the player position.
Put this right under the command
Now we will get his position
I assume you used sscanf so we'll check if any one is near the player
And that's it.
Put this right under the command
pawn Код:
new Float:x, Float:y, Float:z;
pawn Код:
GetPlayerPos(playerid,x, y, z);
pawn Код:
if(!IsPlayerInRangeOfPoint(targetid,5,x,y,z)return SendClientMessage(playerid,-1,"There isn't a near by player");

