[HELP] Remove the underscore in players names
#1

I want to remove the underscore [_] in player names when they chat ingame, for example:

Matthew_Salinas says: BlahBlah

Should be...

Matthew Salinas says: BlahBlah

And I'm using this to block players with normal nicks:

Код:
stock IsValidName(playerid)
{
    if (IsPlayerConnected(playerid))
    {
        new player[24];
        GetPlayerName(playerid,player,24);
        for(new n = 0; n < strlen(player); n++)
        {
        	if (player[n] == '_') return 1;
        	if (player[n] == ']' || player[n] == '[') return 0;
        }
    }
    return 0;
}
If you need any information, just ask.

Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)