zp_gamemodes_get_count

Returns number of registered game modes.

Syntax

native zp_gamemodes_get_count() /** * Sets whether zombies can infect humans for the current game mode. * * @param allow True to allow, false otherwise. */ native zp_gamemodes_set_allow_infect(allow = true) /** * Returns whether zombies are allowed to infect humans for the current game mode. * * @return True if allowed, false otherwise. */ native zp_gamemodes_get_allow_infect() /** * Called when ZP tries to choose a game mode for the current * round. Returning PLUGIN_HANDLED here will tell the game modes * manager that your mode can't be chosen (useful to set custom * conditions, like a min amount of players, etc.) * * @param game_mode_id Internal game mode ID. * @param skipchecks True when mode is being started by an admin. */ forward zp_fw_gamemodes_choose_pre(game_mode_id, skipchecks) /** * Called when a game mode is chosen for the current round. *

Return

Game — mode count.

Defined in zp50_gamemodes.inc at line 88 . This documentation was automatically generated from source.