So I'm setting up a chat col system for my faction system. I'm not really sure how to configure it.
When a faction message is sent, I have:
Currently, a test faction's is
but when I use the chat in game, it shows up in black.
How can I make a working command to set like a hex code-color?
I tried this but it didn't work. Not sure how to set it up, tbh.
When a faction message is sent, I have:
Code:
SendClientMessage(i, fInfo[Player[playerid][pFaction]][fChatColor], string);
Code:
fChatColor=8D8DFF
How can I make a working command to set like a hex code-color?
I tried this but it didn't work. Not sure how to set it up, tbh.
PHP Code:
CMD:setfcolor(playerid, params[]) // Temporary command.
{
new faction, color;
if(!Player[playerid][pFaction])
return SendClientMessage(playerid, ADM, "ERROR:{FFFFFF} You're not in a faction.");
if(Player[playerid][pFacRank] < fInfo[Player[playerid][pFaction]][fEditPerms])
return SendClientMessage(playerid, ADM, "ERROR:{FFFFFF} You don't have access to this command.");
if(sscanf(params, "ds", faction, color))
return SendClientMessage(playerid, ADM, "FACTION USAGE:{FFFFFF} /setfcolor [ faction id ] [ hex code ]");
//format(color, "s[30]", fInfo[faction][fChatColor]);
fInfo[faction][fChatColor] = color;
SaveFaction(faction);
SendClientMessage(playerid, ADM, "Done.");
return 1;
}