how i change colour
#1

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;
        }
Reply
#2

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;
        }
Reply
#3

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

pawn Код:
"{FFFFFF} Hello"
Reply
#4

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
Reply
#5

Yes, you can do that.
Reply
#6

thanks guys i will try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)