[HELP]Anti-IP advertising
#8

Quote:
Originally Posted by Vince
Посмотреть сообщение
I'm sorry, but that is just incredibly dumb. Are you gonna edit your script every time someone shouts out a new ip in the chat?

pawn Код:
public OnPlayerText(playerid, text[])
{
    new
        result = text;

    for(new i = 0, j = strlen(result); i < j; i++)
    {
        if('0' <= result[i] <= '9')
        {
            result[i] = '*';
        }
    }

    SendPlayerMessageToAll(playerid, result);
    return 0;
}
This will filter out ANY numbers typed into the chat box.
That's extremely smart and extremely good.
Reply


Messages In This Thread
[HELP]Anti-IP advertising - by Nenad - 02.12.2010, 16:06
Re: [HELP]Anti-IP advertising - by SkizzoTrick - 02.12.2010, 16:16
Re: [HELP]Anti-IP advertising - by [JnA]DukeNukem - 02.12.2010, 16:36
Re: [HELP]Anti-IP advertising - by Nenad - 02.12.2010, 16:48
Re: [HELP]Anti-IP advertising - by SkizzoTrick - 02.12.2010, 16:52
Re: [HELP]Anti-IP advertising - by Nenad - 02.12.2010, 16:59
Re: [HELP]Anti-IP advertising - by Vince - 02.12.2010, 17:18
Re: [HELP]Anti-IP advertising - by Biesmen - 02.12.2010, 17:31
Re: [HELP]Anti-IP advertising - by WillyP - 02.12.2010, 17:36
Re: [HELP]Anti-IP advertising - by Nenad - 02.12.2010, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)