07.12.2014, 16:30
Hello again, use the GetPlayerIp(playerid, name[], len) https://sampwiki.blast.hk/wiki/GetPlayerIp to get the ip address from a player. The second parameter is the variable name where to store the player ip, passed by reference.
new ip[15], string[128];
GetPlayerIp(playerid, ip, sizeof(ip));
format(string, sizeof(string), "Type your password below to login your account \n\nName: %s (%d) \nIP: %s", GetName(playerid), playerid, ip);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{00CC66}Account Login", string, "Login", "Rename");
new ip[15], string[128];
GetPlayerIp(playerid, ip, sizeof(ip));
format(string, sizeof(string), "Type your password below to login your account \n\nName: %s (%d) \nIP: %s", GetName(playerid), playerid, ip);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{00CC66}Account Login", string, "Login", "Rename");