Problem[bad words]
#4

Yes, if you return 0 under OnPlayerText it will not send the chat:

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "fuck you", true) != -1 || strfind(text, "fuck u", true) != -1)
    {
        ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0, 0);
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Problem[bad words] - by Dan_Barocu - 22.04.2012, 02:24
Re: Problem[bad words] - by MP2 - 22.04.2012, 02:29
Re: Problem[bad words] - by Dan_Barocu - 22.04.2012, 02:35
Re: Problem[bad words] - by MP2 - 22.04.2012, 02:36
Re: Problem[bad words] - by Dan_Barocu - 22.04.2012, 02:46
Re: Problem[bad words] - by MP2 - 22.04.2012, 02:53
Re: Problem[bad words] - by Dan_Barocu - 22.04.2012, 03:01
Re: Problem[bad words] - by Dan_Barocu - 22.04.2012, 03:08
Re: Problem[bad words] - by MP2 - 22.04.2012, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)