How to know if a player is near another player
#2

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


Messages In This Thread
How to know if a player is near another player - by T_Boy - 29.12.2012, 09:11
Re : How to know if a player is near another player - by DaRk_RaiN - 29.12.2012, 09:16
Re: How to know if a player is near another player - by Faisal_khan - 29.12.2012, 09:17
Re: How to know if a player is near another player - by Mado - 29.12.2012, 09:21
Re: How to know if a player is near another player - by Faisal_khan - 29.12.2012, 09:24
Re: Re : How to know if a player is near another player - by T_Boy - 29.12.2012, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)