Making a stats command..
#1

Hello, I use Y_INI
and I made a textdraw for player stats but don't know how to show it on it..
pawn Код:
enum pInfo
{
    //pPass, Ignore the stuff in green.
    //pCash,
    pScore,
    //pAdminLevel,
    //pWantedLevel,
    //pArmy
    pArrests,
    pRobberies,
    pKills,
    pDeaths,
    //pJail,
    //pBanned
}
new PlayerInfo[MAX_PLAYERS][pInfo];

//Textdraw..

    //Stats.
    STextdraw0 = TextDrawCreate(21.000000, 111.000000, "Player Stats:");
    TextDrawBackgroundColor(STextdraw0, 255);
    TextDrawFont(STextdraw0, 1);
    TextDrawLetterSize(STextdraw0, 0.500000, 1.000000);
    TextDrawColor(STextdraw0, 16711935);
    TextDrawSetOutline(STextdraw0, 0);
    TextDrawSetProportional(STextdraw0, 1);
    TextDrawSetShadow(STextdraw0, 1);
    TextDrawUseBox(STextdraw0, 1);
    TextDrawBoxColor(STextdraw0, 75);
    TextDrawTextSize(STextdraw0, 130.000000, 0.000000);

    STextdraw1 = TextDrawCreate(21.000000, 124.000000, "Score: ");
    TextDrawBackgroundColor(STextdraw1, 255);
    TextDrawFont(STextdraw1, 1);
    TextDrawLetterSize(STextdraw1, 0.320000, 1.000000);
    TextDrawColor(STextdraw1, -1);
    TextDrawSetOutline(STextdraw1, 0);
    TextDrawSetProportional(STextdraw1, 1);
    TextDrawSetShadow(STextdraw1, 1);
    TextDrawUseBox(STextdraw1, 1);
    TextDrawBoxColor(STextdraw1, 75);
    TextDrawTextSize(STextdraw1, 130.000000, 0.000000);

    STextdraw2 = TextDrawCreate(21.000000, 165.000000, "Kills: ");
    TextDrawBackgroundColor(STextdraw2, 255);
    TextDrawFont(STextdraw2, 1);
    TextDrawLetterSize(STextdraw2, 0.350000, 1.000000);
    TextDrawColor(STextdraw2, -1);
    TextDrawSetOutline(STextdraw2, 0);
    TextDrawSetProportional(STextdraw2, 1);
    TextDrawSetShadow(STextdraw2, 1);
    TextDrawUseBox(STextdraw2, 1);
    TextDrawBoxColor(STextdraw2, 75);
    TextDrawTextSize(STextdraw2, 130.000000, 0.000000);

    STextdraw3 = TextDrawCreate(21.000000, 178.000000, "Deaths: ");
    TextDrawBackgroundColor(STextdraw3, 255);
    TextDrawFont(STextdraw3, 1);
    TextDrawLetterSize(STextdraw3, 0.350000, 1.000000);
    TextDrawColor(STextdraw3, -1);
    TextDrawSetOutline(STextdraw3, 0);
    TextDrawSetProportional(STextdraw3, 1);
    TextDrawSetShadow(STextdraw3, 1);
    TextDrawUseBox(STextdraw3, 1);
    TextDrawBoxColor(STextdraw3, 75);
    TextDrawTextSize(STextdraw3, 130.000000, 0.000000);

    STextdraw4 = TextDrawCreate(21.000000, 151.000000, "Robberies: ");
    TextDrawBackgroundColor(STextdraw4, 255);
    TextDrawFont(STextdraw4, 1);
    TextDrawLetterSize(STextdraw4, 0.330000, 1.000000);
    TextDrawColor(STextdraw4, -1);
    TextDrawSetOutline(STextdraw4, 0);
    TextDrawSetProportional(STextdraw4, 1);
    TextDrawSetShadow(STextdraw4, 1);
    TextDrawUseBox(STextdraw4, 1);
    TextDrawBoxColor(STextdraw4, 75);
    TextDrawTextSize(STextdraw4, 130.000000, 0.000000);

    STextdraw5 = TextDrawCreate(21.000000, 137.000000, "Arrests: ");
    TextDrawBackgroundColor(STextdraw5, 255);
    TextDrawFont(STextdraw5, 1);
    TextDrawLetterSize(STextdraw5, 0.320000, 1.000000);
    TextDrawColor(STextdraw5, -1);
    TextDrawSetOutline(STextdraw5, 0);
    TextDrawSetProportional(STextdraw5, 1);
    TextDrawSetShadow(STextdraw5, 1);
    TextDrawUseBox(STextdraw5, 1);
    TextDrawBoxColor(STextdraw5, 75);
    TextDrawTextSize(STextdraw5, 130.000000, 0.000000);
Tried everything but didn't work out,
someone?
Reply


Messages In This Thread
Making a stats command.. - by _Khaled_ - 15.09.2012, 20:57
Re: Making a stats command.. - by HighFlyer - 15.09.2012, 21:32
Re: Making a stats command.. - by _Khaled_ - 16.09.2012, 03:19
Re: Making a stats command.. - by _Khaled_ - 17.09.2012, 03:53
Re: Making a stats command.. - by clarencecuzz - 17.09.2012, 06:48
Re: Making a stats command.. - by Camacorn - 17.09.2012, 08:16
Re: Making a stats command.. - by clarencecuzz - 17.09.2012, 08:21

Forum Jump:


Users browsing this thread: 3 Guest(s)