[HELP] Attach3Dtext to a Player[Simple Question] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Attach3Dtext to a Player[Simple Question] (
/showthread.php?tid=317256)
[HELP] Attach3Dtext to a Player[Simple Question] -
ServerScripter - 10.02.2012
hey , i have define
pawn Код:
new Text3D:VIP[MAX_PLAYERS];
Once , so the question is simple : Can this new work also if i use it 4 or 5 times in my GM to create textdraw ?
Like :
pawn Код:
switch(pInfo[playerid][VipLevel])
{
case 0:
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are a Normal player , you don't have any privilages.");
}
case 1:
{
VIP[playerid] = Create3DTextLabel("Silver VIP", COLOR_GREY, 0.0, 0.0, 0.0, 50.0, 0, 0);
Attach3DTextLabelToPlayer(VIP[playerid], playerid, 0.0, 0.0, 0.0);
}
case 2:
{
VIP[playerid] = Create3DTextLabel("Gold VIP", COLOR_GREY, 0.0, 0.0, 0.0, 50.0, 0, 0);// i use it in the second time
Attach3DTextLabelToPlayer(VIP[playerid], playerid, 0.0, 0.0, 0.0);}
}
/* .
.
. //X times
. */
Re: [HELP] Attach3Dtext to a Player[Simple Question] -
[MG]Dimi - 10.02.2012
That variable is assigned to Textlabel. If you destroy that label, yes, you can use it again to create another label. If you have one label assigned to that variable and assigned new label to the same first one will lost that "value".
Re: [HELP] Attach3Dtext to a Player[Simple Question] -
ServerScripter - 10.02.2012
ok the function is destroy3Dtextlabel ? and where to put it ...?