08.08.2012, 12:54
This:
pawn Код:
CMD:stats(playerid,params[])
{
new kills = pInfo[playerid][Kills], deaths = pInfo[playerid][Deaths], alevel = pInfo[playerid][Adminlevel], vlevel = pInfo[playerid][VIPlevel], score = pInfo[playerid][Scores], cash = pInfo[playerid][Money], string[126];
format(string,sizeof(string),"%s stats",GetName(playerid));
format(string,sizeof(string),"Kills: %d \t\t\t\t\tDeaths: %d\nAdmin level: %d \t\t\tVIP level: %d\nMoney: $%d \t\t\t\tScore: %d",kills,deaths,alevel,vlevel, cash, score);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX, string,"Close","");
return 1;
}