new LastText[MAX_PLAYERS][128],SpokenTheSameText[MAX_PLAYERS];
public OnPlayerText(playerid, text[])
{
if(!strcmp(LastText[playerid],text))
{
SpokenTheSameText[playerid]++;
if(SpokenTheSameText[playerid] == 5)
{
new str[64],ppname[MAX_PLAYER_NAME];
GetPlayerName(playerid,ppname,sizeof ppname);
format(str,sizeof str,"%s wurde gekickt, weil er gespammt hat.",ppname);
SendClientMessageToAll(FARBE,str);
Kick(playerid);
format(LastText[playerid],sizeof LastText[playerid],"%s",text);
}
return 1;
}
UNGETESTET!