Name Tags
#1

So my name tags are fucked up. I removed default name tags, added 3D Text Label, but for some players it's duplicates. It doesnt removes after they disconect.



Code
PHP код:
public SafeLogin(playerid)
{
    new 
playername[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayernamesizeof(playername));
    
NameTag[playerid] = Create3DTextLabel(playername0xFFFFFFFF000NAME_DRAWDISTANCE0);
    
Attach3DTextLabelToPlayer(NameTag[playerid], playerid0.00.00.2);
}
public 
OnPlayerDisconnect(playeridreason)
{
    
Delete3DTextLabel(NameTag[playerid]);

And how can i set ID on ( ) after the name?
Reply


Messages In This Thread
Name Tags - by FaZeRs - 27.12.2014, 17:02
Re: Name Tags - by HY - 27.12.2014, 17:37
Re: Name Tags - by FaZeRs - 27.12.2014, 17:48
Re: Name Tags - by FaZeRs - 27.12.2014, 22:25
Re: Name Tags - by Ahmad45123 - 27.12.2014, 22:30
Re: Name Tags - by FaZeRs - 27.12.2014, 22:48
Re: Name Tags - by FaZeRs - 28.12.2014, 08:44
Re: Name Tags - by UpSMaX - 28.12.2014, 08:47
Re: Name Tags - by Pottus - 28.12.2014, 09:24
Re: Name Tags - by FaZeRs - 28.12.2014, 17:35

Forum Jump:


Users browsing this thread: 3 Guest(s)