Creating and attaching the labels?
#2

Create3DTextLabel and Attach3DTextLabelToPlayer.
pawn Код:
//on top
new uLabel[MAX_PLAYERS];

//somewhere in your script
if(playerdb[playerid][VIP]) uLabel[playerid] = Create3DTextLabel("[VIP]", COLOR, 0.0, 0.0, 0.0, 40.0, 0, 0);
else uLabel[playerid] = Create3DTextLabel("[Player]", COLOR, 0.0, 0.0, 0.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(uLabel[playerid], playerid, 0.0, 0.0, 0.3);
I dont know what happens to text label on player death.. You might haveto Delete3DTextLabel and create new one on player spawn.
Reply


Messages In This Thread
Creating and attaching the labels? - by 0ne - 11.04.2010, 14:03
Re: Creating and attaching the labels? - by M4S7ERMIND - 11.04.2010, 15:38
Re: Creating and attaching the labels? - by 0ne - 11.04.2010, 16:49
Re: Creating and attaching the labels? - by M4S7ERMIND - 11.04.2010, 17:02
Re: Creating and attaching the labels? - by M4S7ERMIND - 11.04.2010, 18:28
Re: Creating and attaching the labels? - by 0ne - 11.04.2010, 18:51
Re: Creating and attaching the labels? - by 0ne - 11.04.2010, 19:00
Re: Creating and attaching the labels? - by Amit_B - 11.04.2010, 19:07
Re: Creating and attaching the labels? - by M4S7ERMIND - 11.04.2010, 19:10
Re: Creating and attaching the labels? - by 0ne - 12.04.2010, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)