rpg names help
#1

how to make names only avaible with Name_Surname?
Reply
#2

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
Reply
#3

where to add this function?
Reply
#4

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

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

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
Reply
#7

You need to put it under OnPlayerConnect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)