SA-MP Forums Archive
Aduty with colors - 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: Aduty with colors (/showthread.php?tid=519306)



Aduty with colors - ShiffeyTheGamer - 13.06.2014

Hello, I have asked alot of people about this but I am trying to do aduty colors..

ex. A admin is now (the color green for On-duty) [ON-DUTY] OFF-DUTY
ex. A admin is now (the color red for Off-duty) ON-DUTY [OFF-DUTY]


Re: Aduty with colors - alanhutch - 13.06.2014

You want to colour the write "Admin is now etc..." or the Admin name?


Re: Aduty with colors - ShiffeyTheGamer - 13.06.2014

Now The line for a admin is now on duty! to be white but I want on-duty to be green and off-duty to be red


Re: Aduty with colors - Matnix - 13.06.2014

pawn Код:
// /aduty cmd
    //detect if is admins
        // detect if he isn't in /aduty
            SetPlayerColor(playerid, GREEN);
        // he is in aduty, so send him a message to said him to /off duty
    // he is not a admins, send message to said him he can't..
// return 1;
I don't do the code for you, but I do a example who will help you. It's same for /offduty but change GREEN to RED.


Re: Aduty with colors - alanhutch - 13.06.2014

Try this:
pawn Код:
"A admin is now {4FFA2D}[ON-DUTY] {FFFFFF}OFF-DUTY"
//Or
"A admin is now {FFFFFF}ON-DUTY {FF0000}[OFF-DUTY]"



Re: Aduty with colors - ShiffeyTheGamer - 13.06.2014

Thanks it worked