12.10.2014, 13:38
pawn Код:
stock GetNamePlayer(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid ,name,sizeof(name));
return name;
}
pawn Код:
case 0:
{
new string[244];
new ip[16];
GetPlayerIp(playerid, ip, sizeof ip);
format(string, sizeof(string), "{FFFFFF}Hello, Welcome to The Life of Flying We have found you are registered.\r\n[USERNAME]: {FF9900}%s{FFFFFF}\n{FFFFFF}[IP]: {FF9900}%s{FFFFFF}\r\nPlease enter your password below to login.", GetNamePlayer(playerid), ip);
ShowPlayerDialog(playerid, 1,DIALOG_STYLE_PASSWORD, string,"Login","Quit");
}