02.07.2013, 08:01
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 ↓
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;
}