Changing Written text
#5

On Top:
pawn Код:
new CensoredWords[1][] = {
    "fuck"
};
OnPlayerText:
pawn Код:
for(new i; i < sizeof(CensoredWords); i++)
{
    if(strfind(text,CensoredWords[i],true) != -1)
    {
        // bla bla bla
        new PlayerName[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(string,sizeof(string), "%s: Awesome Server", PlayerName);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }
}
Reply


Messages In This Thread
Changing Written text - by wheelman_WM - 07.04.2011, 08:48
Re: Changing Written text - by Calgon - 07.04.2011, 08:50
Re: Changing Written text - by wheelman_WM - 07.04.2011, 08:51
Re: Changing Written text - by wheelman_WM - 07.04.2011, 08:55
Re: Changing Written text - by HyperZ - 07.04.2011, 09:00
Re: Changing Written text - by wheelman_WM - 07.04.2011, 09:01
Re: Changing Written text - by Calgon - 07.04.2011, 09:01

Forum Jump:


Users browsing this thread: 1 Guest(s)