27.12.2014, 17:02
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
And how can i set ID on ( ) after the name?
Code
PHP код:
public SafeLogin(playerid)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
NameTag[playerid] = Create3DTextLabel(playername, 0xFFFFFFFF, 0, 0, 0, NAME_DRAWDISTANCE, 0, 1 );
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2);
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(NameTag[playerid]);
}