19.07.2011, 22:49
PHP код:
new Palavroes[][128] = {
"porra","cu","buceta","fuder","caralho","puta"
};
new Avisos[MAX_PLAYERS];
public OnPlayerText(playerid,text[])
{
for(new i, j = sizeof(Palavroes); i != j; i++)
{
if(strfind(text,Palavroes[i],true) != -1)
{
Avisos[playerid]++;
new sStr[60];
format(sStr,sizeof(sStr),"Nгo fale palavrхes no chat [%i/3]",Avisos[playerid]);
SendClientMessage(playerid,-1,sStr);
if(Avisos[playerid] == 3) Kick(playerid), Avisos[playerid] = 0;
return false;
}
}
return true;
}