/stats
#2

try this
pawn Код:
if(strcmp(cmd, "/stats", true) == 0)     {
        new player1, tmp[256];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))    {
            ShowScore(playerid);
            return 1;   }
        player1 = strval(tmp);

        if(IsPlayerConnected(player1))      {
            GetPlayerName(player1, playername, sizeof(playername));
            format(string, sizeof(string), "<> %s's Stats:  Kills: %d | Deaths: %d | Ratio: %0.2f | Money: $%d ",playername, PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths],Float:PlayerInfo[player1][Deaths]/Float:PlayerInfo[player1][Deaths],GetPlayerMoney(player1));
            SendClientMessage(playerid, green, string);
            return 1;
        } else {
        SendClientMessage(playerid, COLOR_WHITE, "Player Not Connected!");
        return 1;   }
     }
Reply


Messages In This Thread
/stats - by Markx - 11.03.2011, 08:58
Re: /stats - by Ironboy - 11.03.2011, 09:15
Re: /stats - by Montis123 - 11.03.2011, 09:16
Re: /stats - by Ironboy - 11.03.2011, 09:16
Re: /stats - by Markx - 11.03.2011, 09:18
Re: /stats - by Markx - 11.03.2011, 09:24
Re: /stats - by Markx - 11.03.2011, 09:33
Re: /stats - by Ironboy - 11.03.2011, 09:36
Re: /stats - by Markx - 11.03.2011, 09:38
Re: /stats - by Zh3r0 - 11.03.2011, 10:10

Forum Jump:


Users browsing this thread: 3 Guest(s)