#6

Try this:

pawn Код:
CMD:stats(playerid, params[])
{
    new cash =  GetPlayerMoney(targetid);
    new admin = PlayerInfo[targetid][pAdmin];
    new level = PlayerInfo[targetid][Level];
    new exp = PlayerInfo[targetid][pExp];
    new kills = PlayerInfo[targetid][pKills];
    new death = PlayerInfo[targetid][pDeaths];
    new ratio = kills/death;
    new bd = PlayerInfo[targetid][bd];
    new account = PlayerInfo[targetid][Banka];
    new expa = level*4;
    new intir = GetPlayerInterior(targetid);
    new pla = PlayerInfo[targetid][Hour];
    new Float:health;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid,health);
    new coordsstring[128];
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
    SendClientMessage(playerid, COLOR_WHITE,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Level: [%d] Money: [$%d] Bank: [$%d]", level, cash, account);
    SendClientMessage(playerid, Grey,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Exp: [%d/%d] Int: [%d] Kills: [%d] Deaths: [%d] Ratio: [%d]", exp, expa, intir, kills, death, ratio);
    SendClientMessage(playerid, Grey,coordsstring);
    format(coordsstring, sizeof(coordsstring), "Admin: [%d] BD: [%d] Heal: [%d]", admin, bd, health, pla);
    SendClientMessage(playerid, Grey,coordsstring);
    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
    return 1;
}
Reply


Messages In This Thread
:SS - by Speed - 25.11.2011, 14:21
Re: :SS - by Pharrel - 25.11.2011, 14:31
Re: :SS - by System64 - 25.11.2011, 15:00
Re: :SS - by Speed - 27.11.2011, 20:30
Re: :SS - by admantis - 27.11.2011, 20:32
Re: :SS - by Joshb93 - 27.11.2011, 20:36
Re: :SS - by Speed - 29.11.2011, 07:27
Re: :SS - by TheBetaFox - 29.11.2011, 07:50
Re: :SS - by Speed - 29.11.2011, 08:12

Forum Jump:


Users browsing this thread: 2 Guest(s)