how to add Firstname_Lastname to blank server
#4

Quote:
Originally Posted by Don Correlli
There are many scripts on this forum for checking the First_Last name format - http://forum.sa-mp.com/index.php?action=search
Yeah as Don Correlli said but erm :P here

pawn Код:
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
new namestring = strfind(plname, "_", true);
if(namestring == -1)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
        SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
        Kick(playerid);
        return 1;
    }
That should work, Not saying it will though

OnPlayerConnect
Reply


Messages In This Thread
how to add Firstname_Lastname to blank server - by hardstop - 22.02.2010, 14:10
Re: how to add Firstname_Lastname to blank server - by Correlli - 22.02.2010, 14:11
Re: how to add Firstname_Lastname to blank server - by hardstop - 22.02.2010, 14:16
Re: how to add Firstname_Lastname to blank server - by Torran - 22.02.2010, 14:17
Re: how to add Firstname_Lastname to blank server - by Correlli - 22.02.2010, 14:21
Re: how to add Firstname_Lastname to blank server - by hardstop - 22.02.2010, 14:22

Forum Jump:


Users browsing this thread: 1 Guest(s)