zp_fw_gamemodes_choose_pre
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.)
Syntax
forward zp_fw_gamemodes_choose_pre(game_mode_id, skipchecks) /** * Called when a game mode is chosen for the current round. * * @param game_mode_id Internal ID for the game mode that was chosen. * @param target_player Player ID passed to game mode (can be RANDOM_TARGET_PLAYER). */ forward zp_fw_gamemodes_choose_post(game_mode_id, target_player) /** * Called when a game mode starts. * * @param game_mode_id Internal ID for the game mode that was started. */ forward zp_fw_gamemodes_start(game_mode_id) /** * Called when a game mode ends. * * Note: this can pass ZP_NO_GAME_MODE (if no game mode was in progress). * * @param game_mode_id Internal ID for the game mode that ended. */ forward zp_fw_gamemodes_end(game_mode_id)
Usage
| game_mode_id | Internal game mode ID. |
| skipchecks | True when mode is being started by an admin. |
Defined in
zp50_gamemodes.inc
at line 113
.
This documentation was automatically generated from source.