pawn Код:
CMD:stats(playerid,params[])
{
new string[128], pDeaths, player1, h, m, s;
if(isnull(params)) player1 = playerid;
else player1 = strval(params);
TotalGameTime(player1, h, m, s);
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
new string[800];
format(string,sizeof(string),"Level : %s\n\nKills : %d\n\nDeaths : %d\n\nRatio : %0.2f\n\n{00FF00}Money: $%d\n\n{00FF00}Time: %d jam %d menit %d \n\n",GetRankFromLevel(playerid),PlayerInfo[playerid][Kills],PlayerInfo[playerid][Deaths],Float:PlayerInfo[playerid][Kills],Float:Float:pDeaths,GetPlayerMoney(playerid),h,m,s);
ShowPlayerDialog(playerid,9800,DIALOG_STYLE_MSGBOX,"{00FF00}Player stats",string,"Ok","");
return 1;
}