21.09.2011, 14:58
This at OnPlayerConnect:
Ontop of your script:
NOTE: This will probably work if you disable all nametags first.
OnPlayerDisconnect:
pawn Код:
new string1[128], name[24];
GetPlayerName(playerid, name, sizeof(name));
label[playerid] = format(string1, sizeof(string), "%s",name);
Create3DTextLabel(string1,0xFFFFFFFF,name,130,0,1);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
pawn Код:
new Text3D:label[MAX_PLAYERS];
OnPlayerDisconnect:
pawn Код:
Delete3DTextLabel(label[playerid]);