roleplay name
#1

How i can make that players can use names like Player and not Firstname_Lastname

This is the code. What i need to change ?

pawn Код:
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;
    }
Reply
#2

remove those lines...
pawn Код:
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;
    }
<< remove
Reply
#3

Simply delete all of the code you gave us. Just delete it all and it should work fine.
Reply
#4

Thank You
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)