Код:
dcmd_stats(playerid,params[]) {
new string2[500], pDeaths, player1;
new string3[128], player2, h, m, s;
new string1[128];
if(!strlen(params)) player1 = playerid;
else player1 = strval(params);
if(IsPlayerConnected(player1)) {
TotalGameTime(player1, h, m, s);
if(GetPVarInt(player1, "Deaths") == 0) pDeaths = 1; else pDeaths = GetPVarInt(player1, "Deaths");
format(string1, sizeof(string1), " {ff0000}%s {00ff00}Statisztikбja ",PlayerName2(player1));
format(string2, sizeof(string2), "{ffff00}Цlйsek:{00ff00} %d \n{ffff00}Halбlok:{00ff00} %d \n{ffff00}nArбny:{00ff00} %0.2f \n{ffff00}Pйnz:{00ff00} %d$", GetPVarInt(player1,"Kills"), GetPVarInt(player1,"Deaths"), Float:GetPVarInt(player1,"Kills")/Float:pDeaths,GetPlayerMoney(player1));
format(string3, sizeof(string3), "{ffff00}Pont: {00ff00}%d \n{ffff00}Szerveren eltцltцtt idő:{00ff00} %d : %d : %d",GetPlayerScore(player2), h, m, s);
WARNING>>> return ShowPlayerDialog(playerid,991,DIALOG_STYLE_MSGBOX, "Statisztika:", string1, string2, string3,"Ok","Kilйp");
} else return ShowPlayerDialog(playerid,990,DIALOG_STYLE_MSGBOX, "", "{ff0000}A jбtйkos nincs csatlakoztatva!","Ok","Kilйp");
}