01.01.2015, 23:10
pawn Код:
new pInfo[MAX_PLAYERS][PlayerInfo];
enum PlayerInfo
{
Pass[129], //User's password
Adminlevel, //User's admin level
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Skin, //User's Skin
Deaths //User's deaths
}
CMD:stats(playerid, params[]);
new id;
sscanf(params, "u", id);
if (isnull(params))
{
ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, "%s", "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d",GetPlayerName(playerid),GetPlayerMoney(playerid),pInfo[playerid][Kills],pInfo[playerid][Deaths] "Close", "");
else if(IsPlayerConnected(id))
{
ShowPlayerDialog(playerid,dstats,DIALOG_STYLE_MSGBOX, "%s", "Account: %s\nMoney: $%d\nKills: %d\nDeaths: %d",GetPlayerName(id),GetPlayerMoney(id),pInfo[id][Kills],pInfo[id][Deaths] "Close", "");
}
else return SendClientMessage(playerid,0xFF000080,"Player has not logged in the server!");
}