Admin tag
#1

How would I construct an admin tag?

This is going to be for a roleplay server, for someone who is an administrator obviously.

It would be like, Example Roleplay Administrator
And then I want it to show the rank of the administrator.
How would I do this?
Reply
#2

Do you mean a tag by like something on top of a players head that says: "RopePlay Administrator!"?
Reply
#3

It will be like this:
On the head, First row is the server name. For example, just like Example Roleplay or something
Second: The administrators name
Third: Admin rank (Example: Senior Admin or something.)
Reply
#4

Anyone?
Reply
#5

Hmm the 3D Text.Use the below code.

pawn Код:
public OnPlayerSpawn(playerid)
{
if(Adminvariable == Admin Rank)//Change your variables according to your script
{
new Text3D:label = Create3DTextLabel("Senior Admin", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
return 1;
}
Reply
#6

While Gamer_007 had the right idea, he didn't really give you what you had asked for.

This is basically what you're asking for. You'll need to fill the "szAdminRank" string with the admin's actual rank, though.

pawn Код:
new
    Text3D:adminLabel[MAX_PLAYERS]
;

public OnPlayerSpawn(playerid)
{
    if(IsPlayerAdmin(playerid))
    {
        new
            szString[128],
            szAdminRank[50] = "RealCop228's Bitch"
        ;
       
        format(szString, sizeof(szString), "%s\n%s", SERVER_NAME, szAdminRank);
        adminLabel[playerid] = Create3DTextLabel(szString, 0xFFFF00FF, 0.0, 0.0, 0.0);
        Attatch3DTextLabelToPlayer(adminLabel[playerid], playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}
Reply
#7

RealCop, won't this
pawn Код:
szAdminRank = "RealCop228's Bitch"
be wrong, you forgot to make it into an string, make sure to !
Reply
#8

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
RealCop, won't this
pawn Код:
szAdminRank = "RealCop228's Bitch"
be wrong, you forgot to make it into an string, make sure to !
You would be correct.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)