[PEDIDO] Sistema Anti-Flood/Anti-Spam
#7

PHP код:
// No topo
forward ZerarAntiFlood(playerid);
new 
AntiFlood[MAX_PLAYERS];
// A public OnPlayerText:
public OnPlayerText(playerid,text[])
{
    
AntiFlood[playerid]++;
    if(
AntiFlood[playerid] == 1SetTimerEx("ZerarAntiFlood",1000,false,"i",playerid); // Inicia timer pra zerar o antiflood
    
if(AntiFlood[playerid] == 2SendClientMessage(playerid,-1,"Nгo faзa flood no servidor"); // Mensagem caso ele nгo pare
    
if(AntiFlood[playerid] == 3)
    {
        
SendClientMessage(playerid,-1,"Vocк foi kickado por fazer FLOOD no servidor"); // Manda mensagem
        
Kick(playerid); // Kick o jogador que fez o flood
    
}
    return 
false;
}
// No fim do GM
public ZerarAntiFlood(playeridAntiFlood[playerid] = 0
>> EDIT <<
Vlw feliperch , fiz com pressa nao tinha percebido kk
Reply


Messages In This Thread
[PEDIDO] Sistema Anti-Flood/Anti-Spam - by ViCtOr_Mc - 14.07.2011, 17:56
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by RockFire - 14.07.2011, 17:59
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by ViCtOr_Mc - 14.07.2011, 18:01
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by SuYaNw - 14.07.2011, 18:02
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by RockFire - 14.07.2011, 18:06
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by ViCtOr_Mc - 14.07.2011, 18:06
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by Dark.Angel - 14.07.2011, 18:10
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by ViCtOr_Mc - 14.07.2011, 18:23
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by SuYaNw - 14.07.2011, 18:30
Re: [PEDIDO] Sistema Anti-Flood/Anti-Spam - by ViCtOr_Mc - 14.07.2011, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)