08.03.2012, 03:38
Alguйm poderia me ajuda com um anti flood comandos? por favor, serei muito grato.
Obrigado
Obrigado
forward antiflood(playerid);
new antiflood[MAX_PLAYERS];
public antiflood(playerid)
{
if(IsPlayerConnected(playerid))
{
if(antiflood[playerid] == 1)
{
antiflood[playerid] = 0;
}
}
return true;
}
forward antiflood(playerid);
new antiflood[MAX_PLAYERS];
public antiflood(playerid)
{
if(IsPlayerConnected(playerid))
{
if(antiflood[playerid] == 1)
{
antiflood[playerid] = 0;
}
}
return true;
}
forward antiflood(playerid);
new antiflood[MAX_PLAYERS];
public antiflood(playerid)
{
if(IsPlayerConnected(playerid))
{
if(antiflood[playerid] == 1)
{
antiflood[playerid] = 0;
}
}
return true;
}
if(strcmp(cmd, "/oiantiflood", true) == 0)
{
if(antiflood[playerid] == 1)
{
SendClientMessage(playerid, -1, " Aguarde 5 segundos...");
return 1;
}
else if(antiflood[playerid] == 0)
{
SendClientMessage(playerid, -1, " Oi -q ");
antiflood[playerid] = 1;
SetTimerEx("antiflood", 5000, false, "i", playerid);
return true;
}
return 1;
}