20.09.2013, 14:41
Quote:
-_-
PHP код:
This Code When I compile i'm Using COD gamemode Can Anyone help My do with it ?? i doing zcmd CMD: |
Код:
CMD:stats(playerid,params[]) { new pDeaths, player1, h, m, s,playername[MAX_PLAYER_NAME]; if(isnull(params)) player1 = playerid; else player1 = strval(params); if(IsPlayerConnected(player1)) { TotalGameTime(player1, h, m, s); GetPlayerName(player1, playername, sizeof(playername)); if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths]; new coordsstring[256]; new string2[1024]; format(string2, sizeof(string2),"| ------ | %s's Status | ------- |\n", PlayerName2(player1)); format(coordsstring,sizeof(coordsstring,"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f|\n", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring),"Admin Level: %d | Moderator: %s | Rank: %s | Team: %s | Class: %s|\n", PlayerInfo[player1][Level], PlayerInfo[player1][Helper] ? ("Yes") : ("No"), GetRankName(player1), GetTeamName(player1), GetClass(player1)); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring),"TimePlayed: [%d] hrs [%d] mins [%d] secs | Skin[%d] |", h, m, s, GetPlayerSkin(player1)); strcat(string2,coordsstring); format(coordsstring, sizeof(coordsstring), "_________________________________________________________________________________________"); strcat(string2,coordsstring); ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Stats", string2, "Okay", ""); } else return SendClientMessage(playerid, red, "Player Not Connected!"); return 1; }