01.09.2013, 20:45
Basically I have got a script which shows up the player name in my server which automatically filters out the underscore, although I got an issue because the 3Dtextlabel gets attached to the playerid of the person and when I log out for example it removes, but when someone else logs in and have got the ID I had before his OWN name and MY name will appear and it will be one messy thing.
I have tried using but it does not work properly and still not works.
Please help me out!
Thanks in advance.
I have tried using but it does not work properly and still not works.
Код:
#include <a_samp> public OnPlayerConnect(playerid) { new Text3D:label = Create3DTextLabel(GetPlayersName(playerid), 0xFFFFFFAA, 30.0, 40.0, 50.0, 20.0, 0); Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.2); return 1; } public OnPlayerDisconnect(playerid) { new Text3D:label = Create3DTextLabel(GetPlayersName(playerid), 0xFFFFFFAA, 30.0, 40.0, 50.0, 20.0, 0); DeletePlayer3DTextLabel(playerid, Text3D:label); }
Thanks in advance.