SA-MP Forums Archive
Admin orange name - 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)
+--- Thread: Admin orange name (/showthread.php?tid=418004)



Admin orange name - izeatfishz - 23.02.2013

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


Re: Admin orange name - Gamer_007 - 23.02.2013

U mean u want the admin name in orange right?

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



Re: Admin orange name - izeatfishz - 23.02.2013

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


Re: Admin orange name - Gamer_007 - 23.02.2013

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


Re: Admin orange name - Jewell - 23.02.2013

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


Re: Admin orange name - Slavian - 23.02.2013

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