How i add
#2

pawn Код:
#include <a_samp>

new BadWords[][] =
{
    "Fuck",
    "Shit",
    "Dick",
    "Cunt"
};

public OnPlayerText(playerid, text[])
{
    for( new x; x< sizeof(BadWords) - 1; x++)
    {
        if(strfind(text, BadWords[x], true) != -1)
        {
            SendClientMessage(playerid, -1, "Don't swear / flame");
            return 0;
        }
    }
    return 1;
}
That should work.
Reply


Messages In This Thread
How i add - by Salsa - 26.09.2011, 04:37
Re: How i add - by [HiC]TheKiller - 26.09.2011, 05:43
Re: How i add - by Salsa - 26.09.2011, 08:10
Re: How i add - by [HiC]TheKiller - 26.09.2011, 08:15
Re: How i add - by Salsa - 26.09.2011, 08:16
Re: How i add - by [bs]_lancer - 26.09.2011, 09:27
Re: How i add - by Salsa - 26.09.2011, 09:28
Re: How i add - by [bs]_lancer - 26.09.2011, 09:33
Re: How i add - by BlackStones - 26.09.2011, 09:55
Re: How i add - by [bs]_lancer - 26.09.2011, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)