How to insert color?
#1

Help me please can u teach me how may i color only "community Owner" and leave other as the same color.:

Код:
	else if(PlayerInfo[playerid][pAdmin] >= 99999)
	{
		new string[128];
		format(string, sizeof(string), "(( Community Owner %s: %s ))", GetPlayerNameEx(playerid), params);
		OOCOff(COLOR_OOC,string);
	}
Reply
#2

pawn Код:
else if(PlayerInfo[playerid][pAdmin] >= 99999)
    {
        new string[128];
        format(string, sizeof(string), "(( {%h}Community Owner %s: %s {%h}))", GetPlayerColor(playerid) >>> 8, GetPlayerNameEx(playerid), params, COLOR_OOC >>> 8);
        OOCOff(COLOR_OOC,string);
    }
Reply
#3

Thanks a lot.
Reply
#4

That didnt worked with me
Reply
#5

Quote:
Originally Posted by Imperor
Посмотреть сообщение
That didnt worked with me
GetPlayerColor will not work if you do not set the players color with SetPlayerColor, for example if you don't set anyones color under OnPlayerConnect or anything, GetPlayerColor will just return black. Try using this https://sampwiki.blast.hk/wiki/ColorFix (if you don't have a specific color for admins or such).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)