3D Admin Label For LAdmin (Can someone make It?)
#1

The title says it all, I tried to do that but I Failed , well i am kinda nawb at scripting, so please do make that 3D Label for me above player's Head (Health Bar)
If you post the code below, it would be really nice of you.
Thanks for replies
Reply
#2

Anyone? Please i need it for level 1 to 5 plzzzzzzz
Reply
#3

pawn Код:
new Text3D:AdminLabel[MAX_PLAYERS];
OnPlayerDisconnect
pawn Код:
if(/* is admin */)
{
    Delete3DTextLabel(AdminLabel[playerid]);
}
LoginPlayer
pawn Код:
if(/* is admin */)
{
    AdminLabel[playerid] = Create3DTextLabel("Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
    Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0, 0, 0.4);
}
Reply
#4

Do as MadeMan said cuz we dont know what your variables are ....
Tell us your variables
Reply
#5

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
new Text3D:AdminLabel[MAX_PLAYERS];
OnPlayerDisconnect
pawn Код:
if(/* is admin */)
{
    Delete3DTextLabel(AdminLabel[playerid]);
}
LoginPlayer
pawn Код:
if(/* is admin */)
{
    AdminLabel[playerid] = Create3DTextLabel("Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
    Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0, 0, 0.4);
}
Well, it's gonna be attached to all palyers, i want like Level 1- Moderator 2- Super Moderator 3- Admin 4- Head Admin 5- Co-Owner :/ HELP PLEASE btw i want to know about 'if(/* is admin */)'
Reply
#6

OnPlayerDisconnect
pawn Код:
if(PlayerInfo[playerid][Level] > 0)
{
    Delete3DTextLabel(AdminLabel[playerid]);
}
LoginPlayer
pawn Код:
if(PlayerInfo[playerid][Level] > 0)
{
    switch(PlayerInfo[playerid][Level])
    {
        case 1: AdminLabel[playerid] = Create3DTextLabel("Moderator", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 2: AdminLabel[playerid] = Create3DTextLabel("Super Moderator", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 3: AdminLabel[playerid] = Create3DTextLabel("Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 4: AdminLabel[playerid] = Create3DTextLabel("Head Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 5: AdminLabel[playerid] = Create3DTextLabel("Co-Owner", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
    }
    Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0, 0, 0.4);
}
Reply
#7

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
OnPlayerDisconnect
pawn Код:
if(PlayerInfo[playerid][Level] > 0)
{
    Delete3DTextLabel(AdminLabel[playerid]);
}
LoginPlayer
pawn Код:
if(PlayerInfo[playerid][Level] > 0)
{
    switch(PlayerInfo[playerid][Level])
    {
        case 1: AdminLabel[playerid] = Create3DTextLabel("Moderator", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 2: AdminLabel[playerid] = Create3DTextLabel("Super Moderator", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 3: AdminLabel[playerid] = Create3DTextLabel("Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 4: AdminLabel[playerid] = Create3DTextLabel("Head Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 5: AdminLabel[playerid] = Create3DTextLabel("Co-Owner", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
    }
    Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0, 0, 0.4);
}
--> if(PlayerInfo[playerid][Level] > 0)
F:\Stunter's God 03c R2\pawno\SG.pwn(17367) : error 017: undefined symbol "Level"
F:\Stunter's God 03c R2\pawno\SG.pwn(17369) : error 017: undefined symbol "Level"
(((
Reply please, Helpppp!!!!
Reply
#8

Helppp pleaseeeeeeeeeeeeeeeeeeeeeeee
Reply
#9

Quote:
Originally Posted by Ouch_Charlie
Посмотреть сообщение
--> if(PlayerInfo[playerid][Level] > 0)
F:\Stunter's God 03c R2\pawno\SG.pwn(17367) : error 017: undefined symbol "Level"
F:\Stunter's God 03c R2\pawno\SG.pwn(17369) : error 017: undefined symbol "Level"
(((
Reply please, Helpppp!!!!
Did you put this to LAdmin script?
Reply
#10

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
OnPlayerDisconnect
pawn Код:
if(PlayerInfo[playerid][Level] > 0)
{
    Delete3DTextLabel(AdminLabel[playerid]);
}
LoginPlayer
pawn Код:
if(PlayerInfo[playerid][Level] > 0)
{
    switch(PlayerInfo[playerid][Level])
    {
        case 1: AdminLabel[playerid] = Create3DTextLabel("Moderator", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 2: AdminLabel[playerid] = Create3DTextLabel("Super Moderator", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 3: AdminLabel[playerid] = Create3DTextLabel("Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 4: AdminLabel[playerid] = Create3DTextLabel("Head Admin", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
        case 5: AdminLabel[playerid] = Create3DTextLabel("Co-Owner", 0xFFFFFFFF, 0, 0, 0, 50, 0, 1);
    }
    Attach3DTextLabelToPlayer(AdminLabel[playerid], playerid, 0, 0, 0.4);
}
Where to give this??
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)