[PEDIDO]Ant-Flood
#3

PHP код:
new Tick[MAX_PLAYERS],CmdFlood[MAX_PLAYERS];

public 
OnPlayerCommandText(playerid) {
    if(
GetTickCount() - Tick[playerid] < 5000) {
        
CmdFlood[playerid]++;
        if(
CmdFlood == 2) return Kick(playerid);
        
SendClientMessage(playerid,-1,"Sem flood");
        return 
true;
    }
    
    if(!
strcmp(cmdtext,"/testeflood",true)) {
        print(
"oi");
        return 
true;
    }
    return 
false;

Reply


Messages In This Thread
[PEDIDO]Ant-Flood - by Andrew_Guiga - 09.07.2011, 01:35
Re: [PEDIDO]Ant-Flood - by [R] ousenber [K] - 09.07.2011, 01:41
Re: [PEDIDO]Ant-Flood - by RockFire - 09.07.2011, 01:41
Re: [PEDIDO]Ant-Flood - by [S]trong - 09.07.2011, 01:44
Re: [PEDIDO]Ant-Flood - by RockFire - 09.07.2011, 01:45
Re: [PEDIDO]Ant-Flood - by [S]trong - 09.07.2011, 01:53
Re: [PEDIDO]Ant-Flood - by RockFire - 09.07.2011, 01:56
Re: [PEDIDO]Ant-Flood - by [S]trong - 09.07.2011, 01:56
Re: [PEDIDO]Ant-Flood - by Ricop522 - 09.07.2011, 02:00
Re: [PEDIDO]Ant-Flood - by RockFire - 09.07.2011, 02:00

Forum Jump:


Users browsing this thread: 1 Guest(s)