03.09.2013, 13:55
pawn Код:
if(IsPlayerConnected(playerid))
if(IsPlayerConnected(playerid))
{
new admin = PlayerInfo[playerid][pAdmin];
new money = PlayerInfo[playerid][pCash];
new kills = PlayerInfo[playerid][pKills];
new deaths = PlayerInfo[playerid][pDeaths];
new score = PlayerInfo[playerid][pScore];
new string1[128],stats[1024];
format(string1, sizeof string1, "{44A1D0}Score: {FFFFFF}[%d] {44A1D0}Money: {FFFFFF}[$%d] {44A1D0}Kills: {FFFFFF}[%d] {44A1D0}Deaths: {FFFFFF}[%d] {44A1D0}Admin Level: {FFFFFF}[%d]", score,money,kills,deaths,admin);
format(stats, sizeof stats, "%s", string1);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Your account:",stats,"Ok","");
}