AMXX-BG.INFO cromchat.inc

cromchat

Browse all symbols documented inside this include file.

Constants

Name Description
_cromchat_included
replace_string = replace_all
client_print_color = CC_SendMatched
print_team_default = CC_COLOR_TEAM
print_team_grey = CC_COLOR_GREY
print_team_blue = CC_COLOR_BLUE
print_team_red = CC_COLOR_RED
ColorChat = CC_SendMatched
NORMAL = CC_COLOR_TEAM
TEAM_COLOR = CC_COLOR_TEAM
GREEN = CC_COLOR_TEAM
GREY = CC_COLOR_GREY
BLUE = CC_COLOR_BLUE
RED = CC_COLOR_RED
show_activity = CC_ShowActivity
show_activity_id = CC_ShowActivityId
show_activity_key = CC_ShowActivityKey
PrintChatColor = CC_SendMatched
PRINT_COLOR_GREY = CC_COLOR_GREY
PRINT_COLOR_RED = CC_COLOR_RED
PRINT_COLOR_BLUE = CC_COLOR_BLUE
PRINT_COLOR_PLAYERTEAM = CC_COLOR_TEAM
ChatPrint = CC_SendMessage
CC_PERCENT_REPLACE = "%"
CromChat = CC_SendMessage
CC_COLORS_TYPE = CC_COLORS_CROMCHAT
CC_ACTIVITY_FLAG = -1
CC_ACTIVITY_PREFIX_PLAYER = "PLAYER"
CC_ACTIVITY_PREFIX_ADMIN = "ADMIN"
CC_SYM_MENU_YELLOW = "\y"
CC_SYM_MENU_WHITE = "\w"
CC_SYM_MENU_GREY = "\d"
CC_SYM_MENU_RIGHT = "\R"
CC_SYM_CHAT_DEF_NORMAL = "^x01"
CC_SYM_CHAT_DEF_TEAM = "^x03"
CC_SYM_CHAT_DEF_GREEN = "^x04"
CC_SYM_CHAT_NORMAL = "&x01"
CC_SYM_CHAT_TEAM = "&x03"
CC_SYM_CHAT_GREEN = "&x04"
CC_SYM_CHAT_WHITE = "&x05"
CC_SYM_CHAT_BLUE = "&x06"
CC_SYM_CHAT_RED = "&x07"
CC_SYM_CHAT_NOPREF = "&x00"
CC_SYM_CHAT_NORMAL = "&x01"
CC_SYM_CHAT_TEAM = "&x03"
CC_SYM_CHAT_GREEN = "&x04"
CC_SYM_CHAT_WHITE = "&x05"
CC_SYM_CHAT_BLUE = "&x06"
CC_SYM_CHAT_RED = "&x07"
CC_SYM_CHAT_NOPREF = "&x00"
CC_SYM_CHAT_NORMAL = "!n"
CC_SYM_CHAT_TEAM = "!t"
CC_SYM_CHAT_GREEN = "!g"
CC_SYM_CHAT_WHITE = "!w"
CC_SYM_CHAT_BLUE = "!b"
CC_SYM_CHAT_RED = "!r"
CC_SYM_CHAT_NOPREF = "!p"
CC_SYM_CHAT_NORMAL = "{normal}"
CC_SYM_CHAT_TEAM = "{team}"
CC_SYM_CHAT_GREEN = "{green}"
CC_SYM_CHAT_WHITE = "{white}"
CC_SYM_CHAT_BLUE = "{blue}"
CC_SYM_CHAT_RED = "{red}"
CC_SYM_CHAT_NOPREF = "{nopref}"
CC_SYM_CHAT_NORMAL = "{n}"
CC_SYM_CHAT_TEAM = "{t}"
CC_SYM_CHAT_GREEN = "{g}"
CC_SYM_CHAT_WHITE = "{w}"
CC_SYM_CHAT_BLUE = "{b}"
CC_SYM_CHAT_RED = "{r}"
CC_SYM_CHAT_NOPREF = "{p}"
CC_SYM_CHAT_NORMAL = "^1"
CC_SYM_CHAT_TEAM = "^3"
CC_SYM_CHAT_GREEN = "^4"
CC_SYM_CHAT_WHITE = "^5"
CC_SYM_CHAT_BLUE = "^6"
CC_SYM_CHAT_RED = "^7"
CC_SYM_CHAT_NOPREF = "^0"

Stocks

Name Description
CC_SendMessage Sends a colored chat message.
CC_SendMatched Sends a colored chat message matching a specific player's color.
CC_GroupMessage Sends a colored chat message to a group of players matching the flags from the get_players() function.
CC_SendAdminMessage Sends a colored chat message to all players who have the specified admin flags.
CC_LogMessage Sends a colored chat message and logs it at the same time.
CC_ShowActivity Sends a colored chat message to all players that obeys the amx_show_activity cvar.
CC_ShowActivityId Sends a colored chat message to a single client that obeys the amx_show_activity cvar.
CC_ShowActivityKey Sends a colored chat message to all clients using nromal language keys that obeys the amx_show_activity cvar.
CC_RemoveColors Removes the color codes from a message.
CC_RemoveExploits Removes exploits from the message.
CC_SetPrefix Sets a global prefix that will be used for all sent messages.
CC_RemovePrefix Removes the global message prefix.
CC_SetColor Sets the team color for the next message that's going to be sent.
_CC_WriteMessage This function is used by the other stocks in order to send a raw message.
_CC_ModInit Checks if the server is running Counter-Strike.
_CC_ActivityInit Stores the amx_show_activity pointer for use with "ShowActivity" functions.
_CC_GetActivityPrefix Returns the player prefix used with "ShowActivity" functions.
_CC_IsActivityAdmin Checks whether the client has the required flag to be marked as an admin for the "ShowActivity" functions.

Constants