SA-MP Forums Archive
OOC Color HELP! - 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: OOC Color HELP! (/showthread.php?tid=344186)



OOC Color HELP! - Evation - 20.05.2012

Код:
	else if(PlayerInfo[playerid][pAdmin] == 99999)
	{
		new string[128];
		format(string, sizeof(string), "(( Executive Director %s:- %s ))", GetPlayerNameEx(playerid), params);
		OOCOff(COLOR_REALRED,string);
	}
how can i make only the "Executive Director" bit red and the rest white?


Re: OOC Color HELP! - ReneG - 20.05.2012

Use the color embedding.

Get the HTML color codes here.


Re: OOC Color HELP! - RoboN1X - 20.05.2012

https://sampwiki.blast.hk/wiki/Color_Embedding
I'm not sure, but i think the OOCOff function using SendClientMessage? if so then use that method (Color embedding)
example:
pawn Код:
else if(PlayerInfo[playerid][pAdmin] == 99999)
    {
        new string[128];
        format(string, sizeof(string), "(( {FF0000}Executive Director{FFFFFF} %s:- %s ))", GetPlayerNameEx(playerid), params);
        OOCOff(COLOR_REALRED,string);
    }
the {FF0000} is bright red, and the {FFFFFF} is white.. so it will looks like:
((Executive Director Name:- params))
Note: the first double brackets "((" will use the default color you set from the OOCOff (COLOR_REALRED)
also note that this color embedding only works in 0.3c +
hope it helps
EDIT: i've click "preview" button many times, but when i click "post" button someone already answered D:


Re: OOC Color HELP! - Evation - 20.05.2012

thankyou guys very much!