13.09.2013, 09:26
pawn Код:
else if (id == playerid) return SendClientMessage( ... ); // you can't use it to yourself.
pawn Код:
GetPlayerPos(playerid, x, y, z); // Your position
pawn Код:
else if (!IsPlayerInRangeOfPoint(id, 5.0, x, y, z)) return SendClientMessage(playerid, 0xFF0000AA, "You are not near that player");
If you test it on yourself with comment the line about the id == playerid and it works, then it's probably working 99 percent.