Chat Help
#1

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 :-/??
Reply
#2

Edited.. New topic. not Dini anymore!
Reply
#3

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;
}
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)