Posts: 737
Threads: 338
Joined: Jan 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).
Posts: 391
Threads: 25
Joined: Jul 2013
Reputation:
0
I Guess"Guess" it is auto deleted OnPlayerDeath and OnPlayerDisconnect
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
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.