Admin 3D Label
#1

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?
Reply
#2

Well i added for my admin script you can replace by yours admin script:
First Line:
pawn Код:
new Text3D:label1[MAX_PLAYERS];
new Text3D:label2[MAX_PLAYERS];
Add this after public OnPlayerSpawn
pawn Код:
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);
    }
Reply
#3

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...
Reply
#4

new Text3D:rcon[MAX_PLAYERS];

//underonplayerspawn

Код:
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);
}
will work only with rcon admins
Reply
#5

how i do it in Lux Admin mode ?
Reply
#6

Quote:
Originally Posted by itayizra
how i do it in Lux Admin mode ?
how u define ur admin ?? like : if(playeradminbylux[level] > 0) tell me how u define it?
Reply
#7

Quote:
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...
Working for me fine though...
Reply
#8

Quote:
Originally Posted by [AC
Etch ]
Quote:
Originally Posted by itayizra
how i do it in Lux Admin mode ?
how u define ur admin ?? like : if(playeradminbylux[level] > 0) tell me how u define it?
IsPlayerLuxAdminLevel(playerid, level)
Reply
#9

Fixed!I rejoined the server and the label shown!And its not true that will work only for Rcon Admins
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)