How to show a playersname when they spawn
#1

Hello, I just wanna know how to get a players name when they spawn for ex:
when they finish registering it shows "welcome the persons name". I just need someone to put a code for me.
Thanks. And another thingy im making a cmd /o i want it to say the persons name and show theere message help please thanks.
Reply
#2

Код:
new UsernameString[MAX_PLAYER_NAME], WelcomeString[15 + MAX_PLAYER_NAME];
GetPlayerName(playerid, UserNameString, MAX_PLAYER_NAME);
format(WelcomeString, sizeof(WelcomeString), "Welcome %s!", UserNameString);
SendClientMessage(playerid, -1, WelcomeString);
That will welcome the user with their name in the message as well.
Reply
#3

ok thanks +rep since your the only one who helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)