how to add Firstname_Lastname to blank server
#1

I need Firstname_Lastname system to my blank gamemode
Can anyone copy for me?

Like you get kicked if you dont have Firstname_Lastname
Reply
#2

There are many scripts on this forum for checking the First_Last name format - http://forum.sa-mp.com/index.php?action=search
Reply
#3

I cant find can you send me link of some ?
Reply
#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
#5

http://forum.sa-mp.com/index.php?topic=131015.0
Reply
#6

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)