28.09.2015, 12:53
First of all learn how to create textdraw for players with CreatePlayerTextDraw
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
EDIT:
try this
1st Step:
2nd Step:
Update Step:
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
EDIT:
try this
1st Step:
pawn Код:
new PlayerText:XPS[MAX_PLAYERS]; //At top of script
pawn Код:
public OnPlayerConnect(playerid)
{
XPS[playerid] = CreatePlayerTextDraw(playerid, 310, 432, " ");
PlayerTextDrawShow(playerid, XPS[playerid]);
return 1;
}
pawn Код:
new newxp[246];
format(newxp, sizeof(newxp), "Xp: %d", XP[playerid]);
PlayerTextDrawSetString(playerid, XPS[playerid], newxp);