anti command spam problem
#3

Код:
    if(pInfo[playerid][Logged] == 1)
    {
        new TCount, KMessage[128];

        TCount = GetPVarInt(playerid, "CommandSpamCount");

        TCount++;

        SetPVarInt(playerid, "CommandSpamCount", TCount);
        if(TCount == 3)
        {
            GetPlayerName(playerid, KMessage, sizeof(KMessage));
            format(KMessage, sizeof(KMessage), "[Anti-Spam]: %s has been kicked for command spamming.", KMessage);
            SendClientMessageToAll(0xFFFFFFFF, KMessage);
            print(KMessage);
            Kick(playerid);
			}
        SetTimerEx("ResetCommandCount", SpamLimit, false, "i", playerid);
    }
??
Reply


Messages In This Thread
anti command spam problem - by Mijata - 13.03.2015, 16:36
Re: anti command spam problem - by Nabster - 13.03.2015, 16:57
Re: anti command spam problem - by Mijata - 13.03.2015, 16:59
Re: anti command spam problem - by Mijata - 13.03.2015, 17:45
Re: anti command spam problem - by ReD_HunTeR - 13.03.2015, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)