31.08.2012, 09:25
Here this is an easy one the stats are in dialog:
pawn Код:
CMD:stats(playerid,params[])
{
new string[128];
new name[MAX_PLAYER_NAME];
new deaths = PlayerInfo[playerid][pDeaths];
new kills = PlayerInfo[playerid][pKills];
new admin = PlayerInfo[playerid][pAdmin];
new money = PlayerInfo[playerid][pCash];
new score = PlayerInfo[playerid][pScore];
new stats[1024];
GetPlayerName(playerid, name, sizeof(string));
format(string, sizeof(string), "Name:%s\nScore:%d\nMoney:%d\nAdmin Level:%d\nKills:%d\nDeaths:%d",name,score,money,admin,kills,deaths);
format(stats, sizeof(stats), "%s", string);
ShowPlayerDialog(playerid,454, DIALOG_STYLE_MSGBOX,""white"Stats:",stats,"Ok","");
return 1;
}