Police gets spammed. - 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: Police gets spammed. (
/showthread.php?tid=87888)
Police gets spammed. -
Chrham_2 - 22.07.2009
Hello.
When peoples enter Ammunation, the police gets spammed.
How can I make it only sends message once?
pawn Код:
else if(PlayerToPoint(20, i,288.8592,-80.4535,1001.5156))
{//Ammunation 4 (small one's)
GameTextForPlayer(i, "~r~Police has been warned.", 500000, 1);
format(playerid, sizeof(playerid), "HQ: %s has entered ammunation. Keep an extra eye on him.",playerid);
SendFamilyMessage(1, COLOR_DBLUE, playerid);
Re: Police gets spammed. -
MenaceX^ - 22.07.2009
break?
Re: Police gets spammed. -
Joe Staff - 22.07.2009
It looks like it's under a 1-3 second timer, You need to create a variable that turns on when the player is near the point, and turns back off when they're away from it. That way, if it is on then the message does not need to be sent.