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


Messages In This Thread
help with /me and /shout - by THE_KNOWN - 14.01.2011, 02:47
Re: help with /me and /shout - by Deal-or-die - 14.01.2011, 02:52
Re: help with /me and /shout - by Tee - 14.01.2011, 03:55
Re: help with /me and /shout - by THE_KNOWN - 14.01.2011, 04:20
Re: help with /me and /shout - by THE_KNOWN - 14.01.2011, 05:03

Forum Jump:


Users browsing this thread: 1 Guest(s)