Admin orange name
#1

Ok im new to scripting but i need it so admins names in /b are orange, if you could make the script post it and could you tell me where to put it / add in to things..
Reply
#2

U mean u want the admin name in orange right?

Add this under onplayerspawn
pawn Код:
if(AdminVariable >= 1)
{
SetPlayerColor(playerid,0xFF9900AA);
}
Reply
#3

no i mean so in /b everything is grey but the admin name is is orange liek (( Admin_Name : blah ))
Reply
#4

Put ur admin cmd if u have that.Or if u dont have request here : https://sampforum.blast.hk/showthread.php?tid=413556
Reply
#5

did you mean this?

pawn Код:
CMD:b(playerid,params[])
{
    if(/*You admin variable*/ >= 1)
    {
        if(isnull(params)) return
        SendClientMessage(playerid, 0xFF8000C8, "Usage: /b [Text] ");
        new string[128],name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pname,sizeof(pname));
        format(string, sizeof(string), "{FF8000}%s:{FFFFFF} %s", name, params);
        return SendClientMessageToAll(-1,string);
    }
    else return 0;
}
/b blabla
Reply
#6

jewell , Good answer .
Sir , Use this code
Код:
 CMD:b(playerid,params[])
{
    if(/*You admin variable*/ >= 1)
    {
        if(isnull(params)) return
        SendClientMessage(playerid, 0xFF8000C8, "Usage: /b [Text] ");
        new string[128],name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pname,sizeof(pname));
        format(string, sizeof(string), "{FF8000}%s:{FFFFFF} %s", name, params);
        return SendClientMessageToAll(-1,string);
    }
    else return 0;
}
When admin more than level 1 use it on /b his name will be ORange
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)