Will this command work ?
#2

pawn Код:
else if (id == playerid) return SendClientMessage( ... ); // you can't use it to yourself.
Change to:
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");
It should work, if the id is not in range of 5 meters to the playerid's position.. then send the error message.

If you test it on yourself with comment the line about the id == playerid and it works, then it's probably working 99 percent.
Reply


Messages In This Thread
Will this command work ? - by Lajko1 - 13.09.2013, 09:21
Re: Will this command work ? - by Konstantinos - 13.09.2013, 09:26
Re: Will this command work ? - by Lajko1 - 13.09.2013, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)