Dialog Player Name and IP
#1

How can I create dialog with Character Name and IP showing up? Example below (in dialog)

pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "{4985d7}My Roleplay {a7c2e6} - Login", Please enter your password to login\nIf you have lost it, please contact server manager!", "Login", "Cancel");
Convert to

pawn Код:
My Roleplay - Login
------------------------------
Your Name: User_Dialog
Your IP: 192.168.1.1
------------------------------

Please enter your password to login:
(XXXXXXXXXXXXX)
Reply
#2

PHP код:
new playerName[MAX_PLAYER_NAME], playerIP[16];
GetPlayerName(playeridplayerNamesizeof(playerName));
GetPlayerIp(playeridplayerIPsizeof(playerIP));
format(stringsizeof(string), "Your Name: %s\nYour IP: %s\n\nPlease enter your password to login:"playernameplayerIP);
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD"My Roleplay - Login"string"Enter""Exit"); 
Reply
#3

thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)