16.03.2010, 15:05
hello, I would like to create 3D Label "Administrator" if the player is admin.I tried, but without success.So, can you help me please?
new Text3D:label1[MAX_PLAYERS];
new Text3D:label2[MAX_PLAYERS];
if(IsPlayerDAdminByDeadly[playerid][Level] == 5) {
label1[playerid] = Create3DTextLabel("HEAD ADMIN",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
if(IsPlayerDAdminByDeadly[playerid][Level] == 4) {
label1[playerid] = Create3DTextLabel("ADMINISTRATOR",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
if(IsPlayerDAdminByDeadly[playerid][Level] == 3) {
label1[playerid] = Create3DTextLabel("MODERATOR",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
if(IsPlayerDAdminByDeadly[playerid][Level] == 2) {
label1[playerid] = Create3DTextLabel("BASIC MODERATOR",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
if(IsPlayerDAdminByDeadly[playerid][Level] == 1) {
label1[playerid] = Create3DTextLabel("DONATOR",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
}
if(IsPlayerDAdminByDeadly[playerid][Level] == 0) {
label2[playerid] = Create3DTextLabel(" ",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
}
if(IsPlayerAdmin(playerid)) { rcon[playerid] = Create3DTextLabel("Rcon Admin",0x008080FF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(rcon[playerid], playerid, 0.0, 0.0, 0.4); }
Originally Posted by itayizra
how i do it in Lux Admin mode ?
|
Originally Posted by ikarus
Doesn't work I don't even get warnings or errors all is OK in pawno but when I went ingame, I asked a player if he see my 3D label, and he said no.. and I also don't see the other admins labels...
|
Originally Posted by [AC
Etch ]
Quote:
|