22.07.2015, 18:55
I have updated the code in my previous post.
This line:
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.
This line:
pawn Code:
if(++ChatWarns[playerid] >= 3) Kick(playerid);
The warnings get reset if the player stops spamming.