15.03.2011, 13:28
pawn Код:
new Text3D:AdminLabel[MAX_PLAYERS];
//OnPlayerDosconnect
Update3DTextLabelText(AdminLabel[playerid], 0xFFFFFFFF, " ");
//OnPlayerSpawn
if(Spieler[playerid][AdminLevel] < 0)
{
Update3DTextLabelText(AdminLabel[playerid], 0xFFFFFFFF, " ");
}
else if(Spieler[playerid][AdminLevel] < 1)
{
Add3DTextLabelToAdmin(playerid);
}
stock Add3DTextLabelToAdmin(playerid)
{
AdminLabel[playerid] = Create3DTextLabel("{FF007F}A{FF0000}d{FF007F}m{FF0000}i{FF007F}n",0xF97804FF,30.0,40.0,50.0,30,-1,1);
Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0.0, 0.0, 0.7);
}