How to insert color? - 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 to insert color? (
/showthread.php?tid=334174)
How to insert color? -
sanjil_rijal - 14.04.2012
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);
}
Re: How to insert color? -
zSuYaNw - 14.04.2012
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);
}
Re: How to insert color? -
sanjil_rijal - 14.04.2012
Thanks a lot.
Re: How to insert color? -
Laure - 14.04.2012
That didnt worked with me
Re: How to insert color? -
DeathTone - 14.04.2012
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).