19.03.2012, 03:40
Final do gamemode:
No OnPlayerCommandText(topo)
- Testado.
pawn Код:
stock IsPlayerFlooding(pid, maxtime)
{
static Flooding[MAX_PLAYERS char];
if(tickcount() - Flooding{pid} < maxtime) return Flooding{pid} = tickcount(), true;
return Flooding{pid} = tickcount(), false;
}
pawn Код:
if(IsPlayerFlooding(playerid, 5000)) return SendClientMessage(playerid, -1,"Frodanu (5s)");