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