SA-MP Forums Archive
in range problem -.- - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: in range problem -.- (/showthread.php?tid=183187)



in range problem -.- - nejc001 - 14.10.2010

If i make script like this, than it will spam "Banana" whole time ur in range of coordinates.
Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0, *some coordinates*)
SendClientMessage(playerid, 0xFF9900AA, "Banana");
How to make that it should write only once "Banana" when you enter in range.
And if you go out of range and back in it should write "Banana" again.


Re: in range problem -.- - armyoftwo - 14.10.2010

you will have to make a variable, like beenin = 1; when he goes in and then check if the beenin is 1


Re: in range problem -.- - nejc001 - 14.10.2010

oooh, ok than lets make it on hard way :/