Textdraw
#7

Hook the function:

pawn Код:
stock h_SetPlayerScore(playerid, score)
{
    SetPlayerScore(playerid, score);

    // Textdraw code here
    new tdstring[24];
    format(tdstring, sizeof(tdstring), "Score: ~Y~%i", score);
    PlayerTextDrawSetString(playerid, TD_pScore[playerid], tdstring);
    return 1;
}

#if defined _ALS_SetPlayerScore
    #undef SetPlayerScore
#else
    #define _ALS_SetPlayerScore
#endif
#define SetPlayerScore h_SetPlayerScore
Put that code UNDER the includes, but BEFORE any callbacks or functions.

You need to CREATE THE PLAYER-TEXTDRAW.

https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Reply


Messages In This Thread
Textdraw - by MechaTech - 18.05.2012, 08:54
Re: Textdraw - by Flake. - 18.05.2012, 09:04
Re: Textdraw - by MP2 - 18.05.2012, 09:29
Re: Textdraw - by Flake. - 18.05.2012, 09:30
Re: Textdraw - by MechaTech - 18.05.2012, 09:33
Re: Textdraw - by Flake. - 18.05.2012, 09:42
Re: Textdraw - by MP2 - 18.05.2012, 09:45
Re: Textdraw - by MechaTech - 18.05.2012, 09:59
Re: Textdraw - by MP2 - 18.05.2012, 10:35
Re: Textdraw - by MechaTech - 18.05.2012, 11:28

Forum Jump:


Users browsing this thread: 4 Guest(s)