18.05.2012, 09:45
Hook the function:
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
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
You need to CREATE THE PLAYER-TEXTDRAW.
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw