How to add a color to this - 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 add a color to this (
/showthread.php?tid=473009)
How to add a color to this -
thomaswilliams - 31.10.2013
How to make the string "Server Update" orange?
PHP код:
CMD:update(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
new string[256], text[128];
if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, " /update [Update]");
format(string, sizeof(string), "Server Update: %s", text);
SendClientMessageToAll(-1, string);
return 1;
}
}
Please help?
Re: How to add a color to this -
Mattakil - 31.10.2013
replace -1 with the color code in the format "0xCOLORCODEFF", use html-color-codes.info
pawn Код:
SendClientMessageToAll(0xFF8000AA, string);
Re: How to add a color to this -
Diogo123 - 01.11.2013
pawn Код:
CMD:update(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
new string[256], text[128];
if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, " /update [Update]");
format(string, sizeof(string), "Server Update: %s", text);
SendClientMessageToAll(0xFF9900AA, string);
return 1;
}
}
to make their own colors go :
http://www.colorpicker.com/