How to see others stats?
#7

pawn Код:
CMD:stats(playerid,params[])
{
    new id = playerid;
   
    if(!isnull(params))
    {
        id = strval(params);
        if(!IsPlayerConnected(id))
            return SendClientMessage(playerid, 0xFFFFFFFF, "Player is not connected");
    }
   
    new money = PlayerInfo[id][pCash];
    new deaths = PlayerInfo[id][pDeaths];
    new kills = PlayerInfo[id][pKills];
    new vip = PlayerInfo[id][pVip];
    new warn = PlayerInfo[id][pWarns];
    new string[200];
    format(string,sizeof(string),"| Money: %d | Kills: %d | Deaths: %d | Ratio: %0.2f | VIP: %d | Warns: %d| ",money,kills,deaths,Float:kills/Float:deaths,vip,warn);
    SendClientMessage(playerid,COLOR_WHITE,string);
    return 1;
}
Reply


Messages In This Thread
How to see others stats? - by Champ - 02.07.2013, 08:01
Re: How to see others stats? - by Luis- - 02.07.2013, 08:10
Re: How to see others stats? - by Scottas - 02.07.2013, 08:19
Re: How to see others stats? - by Champ - 02.07.2013, 08:21
Re: How to see others stats? - by Scottas - 02.07.2013, 08:23
Re: How to see others stats? - by Champ - 02.07.2013, 08:26
Re: How to see others stats? - by Scottas - 02.07.2013, 08:36
Re: How to see others stats? - by drichie - 02.07.2013, 08:38
Re: How to see others stats? - by Goldilox - 02.07.2013, 08:46
Re: How to see others stats? - by Scottas - 02.07.2013, 08:49

Forum Jump:


Users browsing this thread: 1 Guest(s)