SA-MP Forums Archive
Chat Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Chat Help (/showthread.php?tid=124301)



Chat Help - patchkinson - 29.01.2010

Forget this Dini post, i edited cose i solved dini now i need help with another thing.
Ok i know how to make actions under OnPlayerText, but i dont know how to make it like erase text, like if someone says anything, if(blabla) Dont send the player's message to the chatbox... is that possible :-/??


Re: Chat Help - patchkinson - 30.01.2010

Edited.. New topic. not Dini anymore!


Re: Chat Help - PotH3Ad - 30.01.2010

Here you go:

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(!strcmp("blabla",text,true) || !strcmp("testing",text,true) || !strcmp("fuck",text,true))
    {
        SendClientMessage(playerid, COLOR_RED, "Forbidden Word.");
        return 0;
    }
    return 1;
}



Re: Chat Help - [HiC]TheKiller - 30.01.2010

http://forum.sa-mp.com/index.php?top...6966#msg876966


Re: Chat Help - patchkinson - 30.01.2010

Quote:
Originally Posted by [___
PotH3Ad ]
Here you go:

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(!strcmp("blabla",text,true) || !strcmp("testing",text,true) || !strcmp("fuck",text,true))
    {
        SendClientMessage(playerid, COLOR_RED, "Forbidden Word.");
        return 0;
    }
    return 1;
}
THANKS VERY USEFULL DDD