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



Deleting 3D text label - TayFunCZE - 21.07.2016

Hello, I need help with AFK 3D text label, code is working, but 3D text isn't delete when player resume.


PHP код:
new Text3D:PlayerAFKlabel[MAX_PLAYERS]; 
PHP код:
format(string,sizeof(string),"AFK: %i minutes - %i seconds.",PlayerData[playerid][AFKmin],PlayerData[playerid][AFKsec]);
PlayerAFKlabel[playerid] = Create3DTextLabel(string,WHITE,0.0,0.0,0.0,20,-1,0);
Attach3DTextLabelToPlayer(PlayerAFKlabel[playerid],playerid,0.0,0.5,0.0); 
And when player resume 3D text is still showing..
PHP код:
Delete3DTextLabel(PlayerAFKlabel[playerid]);