07.11.2014, 08:57
hy
Im a easy scripter please help me./stats in dialog
Sorry for my bad english
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