16.09.2011, 22:54
criei esta:
pronto para usar.
Ps: aonde estб o 5 й o tempo ( segundos ).
pawn Код:
#include <a_samp>
new carol[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(IsPlayerFlooding(playerid, 5))
return SendClientMessage(playerid, -1,"Nгo floode comandos!");
carol[playerid] = gettime();
return 0;
}
stock IsPlayerFlooding(playerid, tempo)
{
if(gettime() - carol[playerid] < tempo) return true;
return false;
}
Ps: aonde estб o 5 й o tempo ( segundos ).