22.02.2010, 22:52
pawn Код:
#define STATSDIALOG 500 // With all your other defines...
dcmd(stat, 6, cmdtext); // At the other dcmd shizzle
dcmd_stat(playerid, params[]) // This is the command
{
#pragma unused params
new string[256];
new level = PlayerInfo[playerid][pLevel];
new bank = PlayerInfo[playerid][pBank];
new cash = PlayerInfo[playerid][pCash];
format(string, sizeof(string), "Level: %d\nMoney: %d\nBank: %d",level,cash,bank);
ShowPlayerDialog(playerid, STATSDIALOG, DIALOG_STYLE_MSGBOX,"Status", string, "Okay", "Cancel");
return 1;
}