15.02.2011, 17:00
Quote:
hi,
im creating some textlabels above the head of every player. And theres a second label for admins only. Normal players got only the first label and admins got both of them. Now it seems that this 2 labels mix up somehow. Cause I made a command admins can use to hide the admin label. But then it hides the normal first label instead of the admin label. But i didnt mix this label ids up so wheres the error? pawn Код:
|
pawn Код:
if(Player[playerid][AdminLevel] == 0)
{
NormalLabel[playerid] = Create3DTextLabel("Text",0xF97804FF,30.0,40.0,50.0,30,-1,0);
Attach3DTextLabelToPlayer(NormalLabel[playerid], playerid, 0.0, 0.0, 0.5);
}
//Admin Label
if(Player[playerid][AdminLevel] > 0)
{
AdminLabel[playerid] = Create3DTextLabel("Admin",0xF97804FF,30.0,40.0,50.0,30,-1,0);
Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0.0, 0.0, 0.7);
}