Stats dialog
#1

hy
Im a easy scripter please help me./stats in dialog
Sorry for my bad english

Код:
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 | halбl: %d | arбny: %0.2f | pйnz: $%d | nap: %d уra %d perc %d mp |",PlayerName2(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1), h, m, s);
		return SendClientMessage(playerid, green, string);
	} else return SendClientMessage(playerid, red, "HIBA: jбtйkos nincs csatlakozva!");
}
#endif


#endif
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: 2 Guest(s)