22.06.2014, 10:08
here you go
pawn Код:
CMD:stats(playerid, params[])
{
new string[1024], holder[128];
format(string, sizeof(string), ""COL_LIGHTBLUE"GENERAL INFORMATION:\n"COL_WHITE"Character Level: %d\nExperience: %d\nCash: %d\nBank: %d\n",GetPlayerScore(playerid), PlayerInfo[playerid][pExp], GetPlayerMoney(playerid), PlayerInfo[playerid][pBank]);
strcat(holder, string, sizeof(holder));
format(string, sizeof(string), ""COL_WHITE"Kills: %d\nDeaths: %d\nMaster Keys: %d\n\n"COL_LIGHTBLUE"GAME STATICS:\n"COL_WHITE"Caught Fishes: %d\nCut Trees: %d\n",PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pMkey], PlayerInfo[playerid][pFishtotal], PlayerInfo[playerid][pLogstotal]);
strcat(holder, string, sizeof(holder));
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX,"Personal Statistics", holder,"Close","");
return 1;
}