Adminduty
#1

Hey i need help..
When you are rcon admin, you have to type /adminduty and you got name on your head DONT TOUCH ME. I'M ON ADMIN DUTY.

But when you are rcon admin, script from 0
Reply
#2

Download an admin FS, I am lazy to type here it all.
My MeanAdmin has an /adminduty command
Reply
#3

pawn Код:
if (strcmp("/adminduty", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid)) {
        SetPlayerChatBubble(playerid, "I'm on Admin Duty!", 0x33AA33AA, 30.0, 10000);
        }
        return 1;
    }
Checks if the player is an Admin (logged in to rcon), if so, it set's a chat bubble above their head displaying they are an Admin. Change the "I'm on Admin Duty!" to what you wish. The bubble will be green, you can change that too
Reply
#4

Or that:

On top of your script:
pawn Код:
new Text3D:Admin[ MAX_PLAYERS ], AdminDuty[ MAX_PLAYERS ];
OnPlayerCommandText:
pawn Код:
if (strcmp("/adminduty", cmdtext, true, 10) == 0)
{
    if( IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1,"You aren't an rcon admin :D");
    if( AdminDuty[ playerid ] == 0 )
    {
        AdminDuty[ playerid ] = 1;
        Admin[ playerid ] = Create3DTextLabel("DONT TOUCH ME. I'M ON ADMIN DUTY.",-1,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer( Admin[ playerid ], playerid, 0.0, 0.0, 0.7);
    }
    else
    {
        AdminDuty[ playerid ] = 0;
        Delete3DTextLabel( Admin[ playerid ] );
    }
    return 1;
}
Reply
#5

Clive thanks.. lock
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)