08-21-2009, 05:09 PM
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]
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]