Hello There, Guest! Login or Register


Help with making a good anti-spam like LVP has.
#2
I'm too lazy to write down the entire code, but I'd do something like this

1) Add: new Chat[MAX_PLAYERS]; on top of your script
2) In OnPlayerText add: Chat[playerid]++;
3) In OnPlayerText add a check if(Chat[playerid] == 5) { Kick(playerid); }
4) create a repeating timer in onplayerconnect that resets Chat[playerid]
Reply


Messages In This Thread
Re: Help with making a good anti-spam like LVP has. - by Matthias - 08-21-2009, 05:09 PM