Functions

amxmodx.inc

Function Type Description
OnAutoConfigsBuffered forward Called when the map has loaded, right after plugin_cfg() but any time
before OnConfigsExecuted. It's called after amxx.cfg and all
AutoExecConfig() exec commands have been added to the server command buffer.
OnConfigsExecuted forward Called when the map has loaded, and all configs are done executing.
This includes servercfgfile (server.cfg), amxx.cfg, plugin's config, and
per-map config.
client_authorized forward Called when the client gets a valid SteamID.
client_command forward Called when a client attempts to execute a command.
client_connect forward Called when a client is connecting.
client_connectex forward Called when a client is connecting.
client_disconnect forward This function has no description.
client_disconnected forward Called when a client is disconnected from the server.
client_infochanged forward Called when a clients info has changed.
client_putinserver forward Called when a client is entering the game.
client_remove forward Called when a client entity has been removed from the server.
inconsistent_file forward Called when an inconsistent file is encountered by the engine.
plugin_cfg forward Called when all plugins went through plugin_init()
plugin_end forward Called just before server deactivation and subsequent unloading of the
plugin.
plugin_init forward Called just after server activation.
plugin_log forward Called when a message is about to be logged.
plugin_modules forward This function has no description.
plugin_natives forward Called before plugin_init(), allows the plugin to register natives.
plugin_pause forward Called just before the plugin is paused from execution.
plugin_precache forward This forward allows plugins to add models, sounds and generic files to the
precache tables using the precache_* set of functions.
plugin_unpause forward Called just after the plugin is unpaused.
server_changelevel forward Called when the mod tries to change the map.
AutoExecConfig native Specifies that the given config file should be executed after plugin load.
ClearSyncHud native Clears the display on a HUD sync object.
CreateHudSyncObj native Creates a HUD synchronization object.
CreateMultiForward native Creates a global forward that will be called in all plugins.
CreateOneForward native Creates a private forward that will be called in a single plugin.
DestroyForward native Destroys and deallocates a forward.
ExecuteForward native Executes a forward.
LibraryExists native Returns if a specific library or class is loaded.
PrepareArray native Prepares an array for use in a forward. Pass the result ExecuteForward()
instead of the array itself.
RequestFrame native Creates a single use hook for the next frame.
ShowSyncHudMsg native Displays a synchronized HUD message.
abort native Aborts execution of the current callback by throwing an error.
admins_flush native Clears the list of dynamically stored admins.
admins_lookup native Retrieves information about a dynamically stored admin.
admins_num native Returns the number of admins in the dynamic admin storage.
admins_push native Adds an admin to the dynamic admin storage for lookup at a later time.
amxclient_cmd native Execute a command from the client without actually sending it to the client's
DLL. This triggers plugin command hooks.
arrayset native Sets all elements of array to a specified value.
callfunc_begin native Initiates a function call to this or another plugin by function name.
callfunc_begin_i native Initiates a function call to this or another plugin by function id.
callfunc_end native Completes the call to a function.
callfunc_push_array native Pushes an array onto the current call.
callfunc_push_float native Pushes a float value onto the current call.
callfunc_push_floatrf native Pushes a float value reference onto the current call.
callfunc_push_int native Pushes an int value onto the current call.
callfunc_push_intrf native Pushes an int value reference onto the current call.
callfunc_push_str native Pushes a string onto the current call.
change_task native Modifies the time interval of all tasks with the specified id.
client_cmd native Executes a command on the client.
client_print native Sends a message to the client.
client_print_color native Sends colored chat messages to clients.
console_cmd native Executes a command from the specified client or the server console.
console_print native Sends a message to the console of a client or the server.
dbg_fmt_error native Retrieves the formatted error string from a trace.
dbg_trace_begin native Returns a trace handle for the item at the top of the traced call stack.
dbg_trace_info native Retrieves the call stack info for a trace.
dbg_trace_next native Returns the next item in a traced call stack.
disable_event native Disables a function hook of a game event which has been previously registered with register_event_ex().
disable_logevent native Disables a function hook of a game log event which has been previously registered with register_logevent().
elog_message native Logs a message hookable by plugins to the current server log file.
emit_sound native Emits a sound from an entity from the engine.
enable_event native Enables a function hook of a game event which has been previously registered with register_event_ex().
enable_logevent native Enables a function hook of a game log event which has been previously registered with register_logevent().
engclient_cmd native Execute a command from the client without actually sending it to the client's
DLL.
engclient_print native Sends a message to the client via the engine.
engine_changelevel native Changes the map.
find_player native Find a player given a filter.
find_player_ex native Find a player given a filter.
find_plugin_byfile native Returns plugin id by filename.
force_unmodified native Forces the clients and server to be running with the same version of a
specified file.
format_time native Retrieves the provided time using the specified format string.
get_addr_val native Returns the value of an address.
get_amxx_verstring native Retrieves the version string of the AMXX installation.
get_array native Retrieves an array from the plugin calling the native.
get_array_f native Retrieves a float array from the plugin calling the native.
get_clcmd native Retrieves information about a client command.
get_clcmdsnum native Returns number of registered client commands.
get_concmd native Retrieves information about a console command.
get_concmd_plid native Returns the parent plugin id of a console command.
get_concmdsnum native Returns number of registered console commands.
get_flags native Converts a bitflag value to a flag string.
get_float_byref native Returns the float value of a by-reference parameter from the plugin calling
the native.
get_func_id native Retrieves a functions id for use with callfunc_begin_i()
get_gametime native Returns the game time based on the game tick.
get_localinfo native Gets info from the server.
get_mapname native Retrieves the name of the currently played map.
get_maxplayers native Returns the maxplayers setting of the current server, that is how many
clients it supports.
get_modname native Retrieves the name of the currently played mod.
get_module native Retrieves info about a module by module index.
get_modulesnum native Returns the number of currently registered modules.
get_param native Returns the integer value of a parameter from the plugin calling the native.
get_param_byref native Returns the integer value of a by-reference parameter from the plugin calling
the native.
get_param_f native Returns the float value of a parameter from the plugin calling the native.
get_players native Stores a filtered list of client indexes to an array.
get_playersnum native Returns the number of clients on the server.
get_plugin native Retrieves info about a plugin by plugin index.
get_pluginsnum native Returns the number of loaded AMXX plugins.
get_srvcmd native Retrieves information about a server command.
get_srvcmdsnum native Returns number of registered server commands.
get_string native Retrieves a string from the plugin calling the native.
get_systime native Returns the system time as a unix timestamp (number of seconds since unix
epoch).
get_time native Retrieves the current time using the specified format string.
get_timeleft native Returns time remaining on map.
get_user_aiming native Traces the client's current aim vector to see if it hits something.
get_user_ammo native Retrieves ammo in the clip and backpack of the specified weapon.
get_user_armor native Returns the client's armor value.
get_user_attacker native Returns the last known attacker of a client.
get_user_authid native Retrieves the SteamID of a client.
get_user_deaths native Returns the client's death count.
get_user_flags native Returns the client's admin flags as a bitflag sum.
get_user_frags native Returns the client's frags.
get_user_health native Returns the client's health points.
get_user_index native Retrieves a client's index by name.
get_user_info native Gets info from the client.
get_user_ip native Retrieves the IP of a client or the server.
get_user_menu native Returns if the client is watching a menu.
get_user_msgid native Returns unique id of a client message.
get_user_msgname native Retrieves the client message name from a message id.
get_user_name native Retrieves the name of a client or the server.
get_user_origin native Retrieves an origin related to the client.
get_user_ping native Retrieves the ping and loss of a client.
get_user_team native Returns the team id of the client, and optionally retrieves the name of
the team.
get_user_time native Returns client's playing time in seconds.
get_user_userid native Returns the userid of a client.
get_user_weapon native Returns weapon index of the currently carried weapon. Also allows retrieval
of ammo in the clip and backpack.
get_user_weapons native Retrieves all weapons in the client inventory, stores them in an array, and
returns the inventory as a bitflag sum.
get_var_addr native Returns the reference address of the variable passed in.
get_weaponid native Returns the weapon id associated with a weapon name.
get_weaponname native Retrieves the full name of a weapon.
get_xvar_float native Returns the float value of a public variable.
get_xvar_id native Returns a unique id for a public variable.
get_xvar_num native Returns the integer value of a public variable.
has_map_ent_class native Returns if a map contains at least one entity with the provided class name.
hash_file native Generate a hash value using the contents of a given file
hash_string native Generate a hash value (message digest)
int3 native Triggers the software interrupt 3, used for breaking into an attached
debugger.
is_amd64_server native This function has no description.
is_dedicated_server native Returns if the server is a dedicated server.
is_jit_enabled native Returns if the AMXX installation has the JIT enabled.
is_linux_server native Returns if the server is running on Linux.
is_map_valid native Returns if the given mapname is deemed valid by the engine.
is_module_loaded native Returns if a module is loaded.
is_plugin_loaded native Returns if a plugin is loaded by registered name or filename.
is_user_alive native Returns if the client is alive.
is_user_authorized native Returns if the client is authorized.
is_user_bot native Returns if the client is a bot.
is_user_connected native Returns if the client is connected.
is_user_connecting native Returns if the client is connecting.
is_user_hltv native Returns if the client is a HLTV proxy.
log_amx native Logs a message to the current AMXX log file.
log_error native Logs an error in the native and breaks into the AMXX debugger.
log_message native Logs a message to the current server log file.
log_to_file native Logs a message to the specified file
md5 native This function has no description.
md5_file native This function has no description.
module_exists native Returns if a specific module is loaded.
next_hudchannel native Returns the next valid hudchannel for the client.
num_to_word native Converts an integer to a text string.
param_convert native Converts a parameter to work as a by-reference parameter.
parse_loguser native Parse log data about client.
parse_time native Converts time strings to unix time stamp.
pause native Pauses a plugin so it will not be executed until it is unpaused.
plugin_flags native Returns the internal flags set on the plugin's state.
precache_event native Precaches an event file.
precache_generic native Precaches a generic file.
precache_model native Precaches a model file.
precache_sound native Precaches a sound file.
random_float native Returns a random floating point value generated by the engine.
random_num native Returns a random integer value generated by the engine.
read_argc native Returns number of client command arguments.
read_args native Retrieves full client command string.
read_argv native Retrieves argument of client command as string.
read_argv_float native Retrieves argument of client command as float value.
read_argv_int native Retrieves argument of client command as integer value.
read_data native Retrieves values from a client message.
read_datanum native Returns the number of values in the client message.
read_datatype native Returns the message id of the client message.
read_flags native Converts a flag string to a bitflag value.
read_logargc native Returns number of log message arguments.
read_logargv native Retrieves argument of log message.
read_logdata native Retrieves current log message.
register_clcmd native Registers a callback to be called when the client executes a command from the
console.
register_concmd native Registers a callback to be called when the client or server executes a
command from the console.
register_event native Registers a function to be called on a given game event.
register_event_ex native Registers a function to be called on a given game event.
register_library native Registers the plugin as a library.
register_logevent native Registers a function to be called on a given log event.
register_menucmd native Registers a callback function to a menu id and keys.
register_menuid native Returns unique menu id of a menu.
register_native native Registers a native.
register_plugin native Sets informations about the calling plugin.
register_srvcmd native Registers a callback to be called when the server executes a command from the
console.
remove_quotes native Removes double-quotes from the beginning and end of a string.
remove_task native Removes all tasks with the specified id.
remove_user_flags native Removes the specified admin flags from a client.
require_module native This function has no description.
server_cmd native Queues a command to be executed from the server console.
server_exec native Forces the server to execute the command queue immediately.
server_print native Sends a message to the console of the server.
set_addr_val native Sets the value of an address.
set_array native Copies an array to the plugin calling the native.
set_array_f native Copies a float array to the plugin calling the native.
set_dhudmessage native Sets display parameters for director hudmessages.
set_error_filter native Allows to trap error messages that occur in a plugin.
set_fail_state native Sets the calling plugin to a failed state.
set_float_byref native Sets the float value of a by-reference parameter to the plugin calling the
native.
set_hudmessage native Sets display parameters for hudmessages.
set_localinfo native Sets info on the server.
set_module_filter native Sets a module/library filter, letting the plugin intercept and handle an
automatic module requirement.
set_native_filter native Sets a native filter, letting the plugin intercept and handle an
automatic native requirement.
set_param_byref native Sets the integer value of a by-reference parameter to the plugin calling the
native.
set_string native Copies a string to the plugin calling the native.
set_task native Calls a function after a specified time has elapsed.
set_user_flags native Sets the specified admin flags to a client.
set_user_info native Sets info on the client.
set_xvar_float native Sets the float value of a public variable.
set_xvar_num native Sets the integer value of a public variable.
show_dhudmessage native Displays a director message on the client HUD.
show_hudmessage native Displays a message on the client HUD.
show_menu native Displays a menu to the client.
show_motd native Shows text or a file in MOTD window.
task_exists native Returns if a task with the specified id exists.
unpause native Unpauses a plugin so it will resume execution if it was previously paused.
user_has_weapon native Returns if the client has the specified weapon in their inventory.
user_kill native Kills a client.
user_slap native Slaps the client with specified power. Killing the client if applicable.
xvar_exists native Returns if a public variable exists in any loaded plugin.