help with /me and /shout
#1

guys these are mt code in zcmd.


Code:
COMMAND:me(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /me [action]");
    GetPlayerName(playerid, Name, sizeof(Name));
    format(String, sizeof(String), "%s %s.", Name, params);
    SendClientMessageToAll(COLOR_ME, String);
    return 1;
}

COMMAND:shout(playerid, params[])
{
	if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE:/shout [MESSAGE]");
	GetPlayerName(playerid, Name, sizeof(Name));
	format(String, sizeof(String), "%s SHOUTS %s", Name, params);
	SendClientMessageToAll(0x6666FF, String);
	return 1;
}
but when i use them in game i dont get the colour i defined. /me comes in pale green and shout in dark green

#define COLOR_ME 0xFF9966
Reply
#2

what colours do you want them?
Reply
#3

It could be that you have another me and shout command in your script, that happened to me once and it was because of 2 "/me commands"
Reply
#4

@deal-or-dia the color codes are specified in the command but still th output turns out to be different.

@tee even i got that doubt and went through my script again and they didnt repeat
Reply
#5

solved.
solution: set alpha value xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)