SA-MP Forums Archive
Godmode 3D text - 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: Godmode 3D text (/showthread.php?tid=516264)



Godmode 3D text - AiRaLoKa - 30.05.2014

hi all...

i got a little bug here... when my player type /godmode on, the 3D text showed. but, when they typed /godmode off, the 3D text doesn't removed.... but the godmode off textdraw showed... can anyone fix this problem?

pawn Код:
//somewhere in my script
new Text3D:godtext[MAX_PLAYERS];

//on my /godmode on script
godtext[playerid] = Create3DTextLabel("GOD MODE {0000FF}ON",COLOR_GREEN,0,0,0,40,-1,1);
Attach3DTextLabelToPlayer(godtext[playerid], playerid, 0.0, 0.0, 0.3);

//on my godmode off script
Delete3DTextLabel(godtext[playerid]);



Re: Godmode 3D text - R0 - 30.05.2014

You can solve it by 2 ways,1 :
Changing
pawn Код:
Delete3DTextLabel(godtext[playerid]);
To
pawn Код:
Delete3DTextLabel(Text3D:godtext[playerid]);
2.updating the text's string to nothing,so it would be
pawn Код:
Update3DTextLabelText(godtext[playerid], 0xFFFFFFFF, " ");
Instead of deleting it


Re: Godmode 3D text - AiRaLoKa - 30.05.2014

i already tried this way
pawn Код:
Delete3DTextLabel(Text3D:godtext[playerid]);
but it still wont removed...
gonna test the second way, but i cant test it by myself
but it's seems will be worked..
i forgot about Update3DTextLabelText :v
+REP

and i will try this way
pawn Код:
Update3DTextLabelText(godtext[playerid], 0xFFFFFFFF, " ");
    Delete3DTextLabel(Text3D:godtext[playerid]);