SA-MP Forums Archive
Admin 3D Label - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin 3D Label (/showthread.php?tid=134341)



Admin 3D Label - [MWR]Blood - 16.03.2010

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?


Re: Admin 3D Label - [WSM]Deadly_Evil - 16.03.2010

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);
    }



Re: Admin 3D Label - [MWR]Blood - 16.03.2010

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...


Re: Admin 3D Label - aircombat - 16.03.2010

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


Re: Admin 3D Label - itayizra - 16.03.2010

how i do it in Lux Admin mode ?


Re: Admin 3D Label - aircombat - 16.03.2010

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?


Re: Admin 3D Label - [WSM]Deadly_Evil - 17.03.2010

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...


Re: Admin 3D Label - itayizra - 17.03.2010

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)


Re: Admin 3D Label - [MWR]Blood - 17.03.2010

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