14.01.2011, 02:47
guys these are mt code in zcmd.
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
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; }
#define COLOR_ME 0xFF9966