SA-MP Forums Archive
rpg names help - 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: rpg names help (/showthread.php?tid=308631)



rpg names help - Artie_Scorpion - 04.01.2012

how to make names only avaible with Name_Surname?


Re: rpg names help - Tamao_Serizawa - 04.01.2012

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.");
                Kick(playerid);
                return 1;
            }
            else
            {
I hope this will help you


Re: rpg names help - Artie_Scorpion - 04.01.2012

where to add this function?


Re: rpg names help - Arnold_Collins - 04.01.2012

Quote:
Originally Posted by Artie_Scorpion
Посмотреть сообщение
where to add this function?
Add it at pawno


Re: rpg names help - Artie_Scorpion - 04.01.2012

Quote:
Originally Posted by Arnold_Collins
Посмотреть сообщение
Ad it at pawno man
Worst answer ever


Re: rpg names help - Arnold_Collins - 04.01.2012

Quote:
Originally Posted by Artie_Scorpion
Посмотреть сообщение
Worst answer ever
what should i say more to you a full history you dont know were to put easy things learn that and we explain more so you understand more better then now


Re: rpg names help - trulis - 11.02.2012

You need to put it under OnPlayerConnect