SA-MP Forums Archive
roleplay name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: roleplay name (/showthread.php?tid=317435)



roleplay name - trulis - 11.02.2012

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;
    }



Re: roleplay name - Tanush123 - 11.02.2012

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


Re: roleplay name - [LoF]Zak - 11.02.2012

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


Re: roleplay name - trulis - 11.02.2012

Thank You