22.09.2013, 02:08
pawn Код:
#define DIALOG_STATS 1005
//Replace this
strcat(str,"| ------ | %s's Status | ------- |", PlayerName2(player1));
strcat(str,"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
strcat(str,"Admin Level: %d | Moderator: %s | Rank: %s | Team: %s | Class: %s", PlayerInfo[player1][Level], PlayerInfo[player1][Helper] ? ("Yes") : ("No"), GetRankName(player1), GetTeamName(player1), GetClass(player1));
strcat(str,"TimePlayed: [%d] hrs [%d] mins [%d] secs", h, m, s);
ShowPlayerDialog(playerid, DIALOG_STATS,DIALOG_STYLE_MSGBOX,"STATS",str,"Ok","Close");