How to see others stats?
#1

i have a cmd /stats in which player only see his own stats. I want /stats [id] cmd in which he can see others stats too.

here is the cmd ↓

pawn Код:
CMD:stats(playerid,params[])
{
    new money = PlayerInfo[playerid][pCash];
    new deaths = PlayerInfo[playerid][pDeaths];
    new kills = PlayerInfo[playerid][pKills];
    new vip = PlayerInfo[playerid][pVip];
    new warn = PlayerInfo[playerid][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: 2 Guest(s)