onplayertext problem
#7

pawn Код:
new BadWords[][] =
{
    "Fuck",
    "Shit",
    "Dick",
    "Asshole"
};
pawn Код:
for(new a; a<sizeof(BadWords); a++)
{
    if(strfind(text, BadWords[a], true) != -1)
    {
        new name[MAX_PLAYER_NAME];
        string[128];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        format(string,sizeof(string),"%s Is A Fool.",name);
        SendClientMessageToAll(COLOR_GREEN,string);
        return 0;
     }
}

Something like that...
Reply


Messages In This Thread
onplayertext problem - by Serediucr - 13.07.2009, 12:10
Re: onplayertext problem - by Djiango - 13.07.2009, 12:13
Re: onplayertext problem - by Serediucr - 13.07.2009, 12:18
Re: onplayertext problem - by Gergo1352 - 13.07.2009, 12:22
Re: onplayertext problem - by MenaceX^ - 13.07.2009, 12:22
Re: onplayertext problem - by Serediucr - 13.07.2009, 12:46
Re: onplayertext problem - by Gergo1352 - 13.07.2009, 13:11
Re: onplayertext problem - by Serediucr - 13.07.2009, 13:21
Re: onplayertext problem - by Gergo1352 - 13.07.2009, 13:24
Re: onplayertext problem - by c0der. - 13.07.2009, 13:39

Forum Jump:


Users browsing this thread: 2 Guest(s)