Functions

zp50_gamemodes.inc

zombie plague 5.0

Function Type Description
zp_fw_gamemodes_choose_post forward Called when a game mode is chosen for the current round.
zp_fw_gamemodes_choose_pre forward 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.)
zp_fw_gamemodes_end forward Called when a game mode ends.

Note: this can pass ZP_NO_GAME_MODE (if no game mode was in progress).
zp_fw_gamemodes_start forward Called when a game mode starts.
zp_gamemodes_get_allow_infect native Returns whether zombies are allowed to infect humans for the current game mode.
zp_gamemodes_get_chosen native Returns game mode that was chosen for the current round.
zp_gamemodes_get_count native Returns number of registered game modes.
zp_gamemodes_get_current native Returns game mode that is currently in progress.
zp_gamemodes_get_default native Returns default game mode.
zp_gamemodes_get_id native Returns a game mode's ID.
zp_gamemodes_get_name native Returns a game mode's name.
zp_gamemodes_register native Registers a new game mode.
zp_gamemodes_set_allow_infect native Sets whether zombies can infect humans for the current game mode.
zp_gamemodes_set_default native Sets a default game mode (to start if no other game mode can been started).
zp_gamemodes_start native Forces a game mode to start.