command color change
#1

Hi there. This is my command:

Код:
command(b, playerid, params[])
{
	new message[128], string[152];
	if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, WHITE, "Server: /b [message]");
	{
	    format(string, sizeof(string), "(( [OOC] %s: %s ))", RemoveUnderScore(playerid), message);
		CloseMessage(playerid, GREY, string);
	}
	return 1;
}
I want it to be this colour: "0x808080FF" which is defined as "GREY". Can someone help me? I can't manage to change it, as the command colour is cyan.
Reply
#2

pawn Код:
command(b, playerid, params[])
{
    new message[128], string[152];
    if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, WHITE, "Server: /b [message]");
    {
        format(string, sizeof(string), "(( [OOC] %s: %s ))", RemoveUnderScore(playerid), message);
        CloseMessage(playerid, 0x808080FF, string);
    }
    return 1;
}
Reply
#3

Thanks alot, repped.
Reply
#4

Or try this one

Код:
command(b, playerid, params[])
{
    new message[128], string[152];
    if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, WHITE, "Server: /b [message]");
    {
        format(string, sizeof(string), "{A4A4A4}(( [OOC] %s: %s ))", RemoveUnderScore(playerid), message);
        CloseMessage(playerid, 0xFFFFFFFF, string);
    }
    return 1;
}
Edit: Nevermind.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)