anti cmd flood
#5

I have updated the code in my previous post.

This line:
pawn Code:
if(++ChatWarns[playerid] >= 3) Kick(playerid);
will increase the variable 'ChatWarns[playerid]' by 1. If that reaches 3 or more, they will be kicked. It's up to you to customise this kick, but this will just kick them with no warnings. You can change the limit of '3' to whatever you want.

The warnings get reset if the player stops spamming.
Reply


Messages In This Thread
anti cmd flood - by PepsiCola23 - 22.07.2015, 18:15
Re: anti cmd flood - by Threshold - 22.07.2015, 18:20
Re: anti cmd flood - by dominik523 - 22.07.2015, 18:23
Re: anti cmd flood - by PepsiCola23 - 22.07.2015, 18:30
Re: anti cmd flood - by Threshold - 22.07.2015, 18:55
Re: anti cmd flood - by PepsiCola23 - 22.07.2015, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)