17.09.2011, 04:31
Hi i am wanting to remove player name from my script but keep the id of that player above their head how would i do that
new Text3D:NormalLabel[MAX_PLAYERS];
NormalLabel[playerid] = Create3DTextLabel("%d",0xF97804FF,30.0,40.0,50.0,30,-1,0, playerid);
Attach3DTextLabelToPlayer(NormalLabel[playerid], playerid, 0.0, 0.0, 0.5);
Delete3DTextLabel(NormalLabel[playerid]);
new Text3D:NormalLabel[MAX_PLAYERS];
new idtext[6]; format(idtext, sizeof idtext, "%i", playerid);
NormalLabel[playerid] = Create3DTextLabel(idtext,0xF97804FF,0,0,-100,30,-1,0);
Attach3DTextLabelToPlayer(NormalLabel[playerid], playerid, 0.0, 0.0, 0.5);
Delete3DTextLabel(NormalLabel[playerid]);
pawn Код:
pawn Код:
pawn Код:
pawn Код:
|
new Text3D:NormalLabel[MAX_PLAYERS];//At the top of the script
new idtext[6]; format(idtext, sizeof idtext, "%i", playerid);
NormalLabel[playerid] = Create3DTextLabel(idtext,0xF97804FF,0,0,-100,30,-1,0);//Put this under OnPlayerConnect
Attach3DTextLabelToPlayer(NormalLabel[playerid], playerid, 0.0, 0.0, 0.5);//Put this under OnPlayerSpawn
Delete3DTextLabel(NormalLabel[playerid]);//Put this under OnPlayerDisconnect