Functions

amxmisc.inc

Function Type Description
AddClientMenuItem stock Adds a menu item/command to the client menu (amx_menu) handled by the
"Menus Front-End" plugin, if it is loaded. Items should be accessible by
non-admins.
AddMenuItem stock Adds a menu item/command to the admin menu (amxmodmenu) handled by the
"Menus Front-End" plugin, if it is loaded.
AddMenuItem_call stock Helper function used by AddMenuItem() and AddClientMenuItem()
access stock Returns if the client has the specified admin flags.
cmd_access stock Returns if the user can execute the current command by checking the necessary
admin flags and parameter count. Displays a denied access message to the user
if missing privileges or a usage example if too few parameters are provided.
cmd_target stock Processes a generic target pattern and tries to match it to a client based
on filtering flags. If no unique target is found an appropriate message is
displayed to the admin.
colored_menus stock Returns if the mod running on the server supports colored menus.
constraint_offset stock Computes an offset from a given value while constraining it between the
specified bounds, rolling over if necessary.
cstrike_running stock Returns if the mod running on the server is a version of Counter-Strike.
get_basedir stock Retrieves the path to the AMXX base directory.
get_configsdir stock Retrieves the path to the AMXX configs directory.
get_customdir stock This function has no description.
get_datadir stock Retrieves the path to the AMXX data directory.
get_players_ex stock Stores a filtered list of client indexes to an array.
get_playersnum_ex stock Returns the number of clients on the server that match the specified flags.
has_all_flags stock Returns if the client has all of the specified admin flags.
has_flag stock Returns if the client has any of the specified admin flags.
is_running stock Returns if the server is running a specific mod.
is_user_admin stock Returns if the client has any admin flags set
register_menu stock Provides a shorthand to register a working menu.
reset_menu stock Resets the client's menu.
set_task_ex stock Calls a function after a specified time has elapsed.
show_activity stock Standard method to show admin activity to clients connected to the server.
This depends on the amx_show_activity cvar. See documentation for more details.
show_activity_id stock Standard method to show admin activity to a single client.
This depends on the amx_show_activity cvar. See documentation for more details.
show_activity_key stock Standard method to show activity to one single client with normal language keys.
These keys need to be in the format of standard AMXX keys:
eg: ADMIN_KICK_1 = ADMIN: kick %s
ADMIN_KICK_2 = ADMIN %s: kick %s
This depends on the amx_show_activity cvar. See documentation for more details.