08.03.2012, 04:14
Topo do gamemode
Final ou com as outras publics.
Exemplo
Topo do gamemode
Final ou com as outras publics.
Exemplo
Topo do gamemode
Final ou com as outras publics.
Comando com o anti-flood
Nгo testei, mas tenta ae D:
pawn Код:
forward antiflood(playerid);
new antiflood[MAX_PLAYERS];
pawn Код:
public antiflood(playerid)
{
if(IsPlayerConnected(playerid))
{
if(antiflood[playerid] == 1)
{
antiflood[playerid] = 0;
}
}
return true;
}
Topo do gamemode
pawn Код:
forward antiflood(playerid);
new antiflood[MAX_PLAYERS];
pawn Код:
public antiflood(playerid)
{
if(IsPlayerConnected(playerid))
{
if(antiflood[playerid] == 1)
{
antiflood[playerid] = 0;
}
}
return true;
}
Topo do gamemode
pawn Код:
forward antiflood(playerid);
new antiflood[MAX_PLAYERS];
pawn Код:
public antiflood(playerid)
{
if(IsPlayerConnected(playerid))
{
if(antiflood[playerid] == 1)
{
antiflood[playerid] = 0;
}
}
return true;
}
pawn Код:
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;
}