[AJUDA] Anti-Palavrгo simples
#4

PHP код:
new Palavroes[][128] = {
    
"porra","cu","buceta","fuder","caralho","puta"
};
new 
Avisos[MAX_PLAYERS];
public 
OnPlayerText(playerid,text[])
{
    for(new 
isizeof(Palavroes); != ji++)
    {
        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] == 3Kick(playerid), Avisos[playerid] = 0;
            return 
false;
        }
    }
    return 
true;

Reply


Messages In This Thread
[AJUDA] Anti-Palavrгo simples - by Allanrokeiro - 19.07.2011, 22:32
Re: [AJUDA] Anti-Palavrгo simples - by Shadoww5 - 19.07.2011, 22:36
Re: [AJUDA] Anti-Palavrгo simples - by Allanrokeiro - 19.07.2011, 22:43
Re: [AJUDA] Anti-Palavrгo simples - by RockFire - 19.07.2011, 22:49
Re: [AJUDA] Anti-Palavrгo simples - by Shadoww5 - 19.07.2011, 23:41

Forum Jump:


Users browsing this thread: 1 Guest(s)