Stats dialog
#8

1 yay im big clucker !
2. try This : [PAWN]dcmd_stats(playerid,params[]) {
new string[128], pDeaths, player1, h, m, s;
if(!strlen(params)) player1 = playerid;
else player1 = strval(params);

if(IsPlayerConnected(player1)) {
TotalGameTime(player1, h, m, s);
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
format(string, sizeof(string), " %s's Statisztika: цlйs: %d \n halбl: %d \n arбny: %0.2f \n pйnz: $%d \n nap: %d уra %d perc %d mp \n",PlayerName2(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/FloatDeaths,GetPlayerMoney(player1), h, m, s);
return SendClientMessage(playerid, green, string);
} else return SendClientMessage(playerid, red, "HIBA: jбtйkos nincs csatlakozva!");
}
Reply


Messages In This Thread
Stats dialog - by Neon1 - 07.11.2014, 08:57
Re: Stats dialog - by UltraScripter - 07.11.2014, 09:40
Re: Stats dialog - by Neon1 - 07.11.2014, 09:54
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:08
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:10
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:13
Re: Stats dialog - by dominik523 - 07.11.2014, 10:20
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:29
Re: Stats dialog - by Neon1 - 07.11.2014, 10:38
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)