Sencurity Admin
#8

pawn Код:
public OnPlayerText(playerid, text[])
{
    PlayerLastText[playerid]++;
    SetTimerEx("ResetPlayerText", 2000, false, "i", playerid);
   
    if(PlayerLastText[playerid] >= 5)
    {
            new string[24 + MAX_PLAYER_NAME+2];
            format(string, sizeof(string), "%s(%d) is spamming - mute them.", GetName(playerid), playerid);
            SendMessageToAdmins(-1, string);
    }
    return 0;
}

forward ResetPlayerText(playerid);
public ResetPlayerText(playerid)
{
     PlayerLastText[playerid] = 0;
     return 1;
}
Reply


Messages In This Thread
Sencurity Admin - by arlindi - 31.03.2015, 20:08
Re: Sencurity Admin - by KingHual - 31.03.2015, 20:09
Re: Sencurity Admin - by Mauzen - 31.03.2015, 20:14
Re: Sencurity Admin - by arlindi - 31.03.2015, 20:14
Re: Sencurity Admin - by Abagail - 31.03.2015, 20:17
Re: Sencurity Admin - by arlindi - 31.03.2015, 20:31
Re: Sencurity Admin - by DowDaw - 31.03.2015, 20:34
Re: Sencurity Admin - by Abagail - 31.03.2015, 20:42
Re: Sencurity Admin - by arlindi - 29.04.2015, 20:32
Re: Sencurity Admin - by Hardicore - 29.04.2015, 22:28

Forum Jump:


Users browsing this thread: 5 Guest(s)