Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Flooding[MAX_PLAYERS char];
- stock IsPlayerFlooding(pid, maxtime)
- {
- if(tickcount() - Flooding{pid} < maxtime)
- return Flooding{pid} = tickcount(), true;
- return Flooding{pid} = tickcount(), false;
- }
- // Verifica se o player está fazendo SPAM ( Floodando ).
- // Uso:
- if(IsPlayerFlooding(playerid, 1200)) return SendClientMessage(playerid, -1 ," Você está flodando! pare!");
Advertisement
Add Comment
Please, Sign In to add comment