zp_gamemodes_get_allow_infect

Returns whether zombies are allowed to infect humans for the current game mode.

Syntax

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. * * @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.

Return

True — if allowed, false otherwise.

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