Hello I have a question about /stats command....
#3

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;
}
Reply


Messages In This Thread
Hello I have a question about /stats command.... - by Scrillex - 31.08.2012, 09:20
Re: Hello I have a question about /stats command.... - by JaKe Elite - 31.08.2012, 09:25
Re: Hello I have a question about /stats command.... - by ThePrograme - 31.08.2012, 09:25
Re: Hello I have a question about /stats command.... - by Scrillex - 31.08.2012, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)