How to stop a sendclientmessage from spamming
#2

pawn Код:
if(GetPVarInt(playerid, "variable_name") == 0) {
    SetPVarInt(playerid, "variable_name", 1);
    // Code - will only be executed once
    // or until "variable_name" is set back to 0
}
Reply


Messages In This Thread
How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 16:51
Re: How to stop a sendclientmessage from spamming - by Sinner - 17.03.2013, 16:54
Re: How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 17:00
Re: How to stop a sendclientmessage from spamming - by Scenario - 17.03.2013, 17:00
Re: How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 17:02
Re: How to stop a sendclientmessage from spamming - by Scenario - 17.03.2013, 17:16
Re: How to stop a sendclientmessage from spamming - by Zalman - 17.03.2013, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)