03.12.2010, 17:45
Hey, i'm noob on dialogs, so i need help how i can do this, that player type's /stats then
appears a dialog box where is he/she's Kill score death score time spend on server etc oh i can do this please help
//Code
appears a dialog box where is he/she's Kill score death score time spend on server etc oh i can do this please help
//Code
Код:
#if defined USE_STATS 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 Stats: Kills: %d | Deaths: %d | Ratio: %0.2f | Money: $%d | Time: %d hrs %d mins %d secs |",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, "Player Not Connected!"); } #endif