Police gets spammed.
#1

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);
Reply
#2

break?
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)