05.05.2012, 22:41
Hi how can I make a simple /stats?
[kills] [deaths] [ratio] [money] [time played] [minutes]
I will rep +. Or a FS.
[kills] [deaths] [ratio] [money] [time played] [minutes]
I will rep +. Or a FS.
CMD:stats(playerid,params[]) { new password = PlayerInfo[playerid][pPass]; new money = PlayerInfo[playerid][pCash]; new deaths = PlayerInfo[playerid][pDeaths]; new kills = PlayerInfo[playerid][pKills]; new score = PlayerInfo[playerid][pScore]; new admin = PlayerInfo[playerid][pAdmin]; new vip = PlayerInfo[playerid][pVIP]; new killpoints = PlayerInfo[playerid][pKillPoints]; new string[500]; format(string,sizeof(string),"Password: %s | Money: %d | Deaths: %d | Kills: %d | Score: %d | Admin: %d | VIP: %d | Killpoints: %d",password,money,deaths,kills,score,admin,vip,killpoints); SendClientMessage(playerid,COLOR_WHITE,string); return 1; }