[Ajuda] Anti Floods
#2

Vocк deve retornar 0 em ambos os casos.
PHP код:
SendClientMessage(playerid, -1"[ANTI-FLOOD] COMMAND! Wait a while to use commands again.");
return 
0
E o primeiro cуdigo deveria estar na callback OnPlayerCommandReceived.
PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    if((
gettime() - Spamming[playerid]) <= && Spamming[playerid])
    {
        
SendClientMessage(playerid, -1"[ANTI-FLOOD] COMMAND! Wait a while to use commands again.");
        return 
0;
    }
    
Spamming[playerid] = gettime();
    return 
1;

Reply


Messages In This Thread
Anti Floods - by maikons - 27.12.2017, 01:12
Re: Anti Floods - by RodrigoMSR - 27.12.2017, 01:47
Re: Anti Floods - by maikons - 28.12.2017, 01:19

Forum Jump:


Users browsing this thread: 1 Guest(s)