SA-MP Forums Archive
Delete 3d text label when player dis. - 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: Delete 3d text label when player dis. (/showthread.php?tid=450422)



Delete 3d text label when player dis. - audriuxxx - 13.07.2013

Hi,

I need to delete 3d text label when player exit? In onplayerdisconnect? Or server automatic delete label which is attached to human? (attach3D....toplayer).


Re: Delete 3d text label when player dis. - Vanter - 13.07.2013

I Guess"Guess" it is auto deleted OnPlayerDeath and OnPlayerDisconnect


Re: Delete 3d text label when player dis. - Threshold - 13.07.2013

If it assigned to the player's ID, example: mylabel[playerid], then yes, you need to delete it when the player disconnects (OnPlayerDisconnect). Well in some terms, you don't HAVE to delete it, but it's much more efficient and easier to understand if you delete it on disconnect, and create on connect (OnPlayerConnect/OnPlayerSpawn). The server will not automatically delete the label for you when you die or disconnect, it may not be connected to a player, but that doesn't mean it's been deleted.