OnPlayerText
#1

Hello, I'm trying to make an Forbidden Words System. I have this:

pawn Код:
public OnPlayerText(playerid, text[])
{
    new name[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid, name, sizeof(name));
    if(strfind("gay", "gay", true) != -1)
    {
        format(string, sizeof(string), "{FF0000}%s {15FF00}(%d) {FFFF00}: {FFCC33}Adaugati la favorite server-ul!", name, playerid);
        SendClientMessageToAll(-1, string);
    }
    return 1;
}
It's workin' fine, but, there's a way, if he say the word from strfind don't send it? And says too all players only text I put?
Reply


Messages In This Thread
OnPlayerText - by HY - 28.11.2014, 12:01
Re: OnPlayerText - by Sawalha - 28.11.2014, 12:07
Re: OnPlayerText - by HY - 28.11.2014, 12:10
Re: OnPlayerText - by Vince - 28.11.2014, 16:29
Re: OnPlayerText - by LeXuZ - 28.11.2014, 17:21

Forum Jump:


Users browsing this thread: 3 Guest(s)