05.04.2014, 11:04
Alright, hey there. I'm having some problems with creating a test command which displays text when used /test near it's location. Now, it's works perfectly fine. I've set it so it has two different messages when near a specific position, and when you're not. The problem I'm having with it though, is whenever I go even far away from where I set the command to be used it, it still displays the same text as if the player was near the set position. Currently using ZCMD for creating commands.
Any idea how I could fix the problem?
Код:
CMD:test(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid,1092.6321,1077.4729,10.8359,129.3716)) { SendClientMessage(playerid,0xFFFFFFFF,"Test"); return 1; } else { SendClientMessage(playerid,0xFFFFFFFF,"Nope!"); return 1; } }