OOC Color HELP!
#1

Код:
	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?
Reply
#2

Use the color embedding.

Get the HTML color codes here.
Reply
#3

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:
Reply
#4

thankyou guys very much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)