SA-MP Forums Archive
how i change colour - 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: how i change colour (/showthread.php?tid=286096)



how i change colour - Salsa - 26.09.2011

how i change msg box colour
see there is msg box


And this is the code of msg_box

Код:
if(strcmp(cmdtext, "/staff", true) == 0)
	{
        ShowPlayerDialog(playerid, 9, DIALOG_STYLE_MSGBOX, "STAFF-MEMBERS", "/-MEMBERS-/\n[OWNERS]=> [GTA]Leon,[GTA]Badboy \n[HEAD-ADMINS]=> [GTA]Lambi, [GTA]DeadMan \n[ADMINS]-, ?\n[V.I.P]-, \n[MODERATORS]-:)\n", "Ok", "Close");
        GameTextForAll("~r~/STAFF", 6000, 0);
        return 1;
        }



Re: how i change colour - Luis- - 26.09.2011

You can use this, http://www.colorpicker.com/. I always use it for colours, remember to do {colour code here}!

Also, I found a little mistake with your code.
pawn Код:
if(strcmp(cmdtext, "/staff", true) == 0)
    {
        ShowPlayerDialog(playerid, 9, DIALOG_STYLE_MSGBOX, "STAFF-MEMBERS", "/-MEMBERS-/\n[OWNERS]=> [GTA]Leon,[GTA]Badboy \n{FFFFFF}[HEAD-ADMINS]=> [GTA]Lambi, [GTA]DeadMan \n{FFFFFF}[ADMINS]-, ?\n{FFFFFF}[V.I.P]-, \n{FFFFFF}[MODERATORS]-:)\n", "Ok", "Close");
        GameTextForAll("~r~/STAFF", 6000, 5);
        return 1;
        }



Re: how i change colour - IceCube! - 26.09.2011

You cant change the box but you can change the text with HEX colours as such

pawn Код:
"{FFFFFF} Hello"



Re: how i change colour - Salsa - 26.09.2011

can i use 2 or 3 colour in that msg box
Head-Admin colour is red
admin colour is green
moderator colour blue can i do that


Re: how i change colour - Luis- - 26.09.2011

Yes, you can do that.


Re: how i change colour - Salsa - 26.09.2011

thanks guys i will try