i need help to change player name format
#4

You have to set a timer.
pawn Код:
new sendername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new namestring = strfind(sendername, "_", true);
            if(namestring == -1)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "Your name must be in the Firstname_Lastname format - Please re-log with a name such as Amir_AB");
                SetTimerEx("KickPlayer", 500, false "i", playerid);
                return 1;
            }
            forward KickPlayer (playerid)
            public KickPlayer (playerid)
            {
                  Kick(playerid);
            }
Reply


Messages In This Thread
i need help to change player name format - by IbeatS - 10.01.2014, 14:10
Re: i need help to change player name format - by amirab - 10.01.2014, 15:16
Re: i need help to change player name format - by IbeatS - 11.01.2014, 05:31
Re: i need help to change player name format - by SyntaxQ - 11.01.2014, 05:40
Re: i need help to change player name format - by IbeatS - 11.01.2014, 08:15
Re: i need help to change player name format - by SyntaxQ - 11.01.2014, 08:20
Re: i need help to change player name format - by IbeatS - 11.01.2014, 11:25
Re: i need help to change player name format - by IbeatS - 11.01.2014, 11:29
Re: i need help to change player name format - by newbie scripter - 11.01.2014, 11:45
Re: i need help to change player name format - by 1FreeHost - 11.01.2014, 11:47

Forum Jump:


Users browsing this thread: 2 Guest(s)