Function | Description |
---|---|
zp_gamemodes_register | Registers a new game mode. |
zp_gamemodes_set_default | Sets a default game mode (to start if no other game mode can been started). |
zp_gamemodes_get_default | Returns default game mode. |
zp_gamemodes_get_chosen | Returns game mode that was chosen for the current round. |
zp_gamemodes_get_current | Returns game mode that is currently in progress. |
zp_gamemodes_get_id | Returns a game mode's ID. |
zp_gamemodes_get_name | Returns a game mode's name. |
zp_gamemodes_start | Forces a game mode to start. |
zp_gamemodes_get_count | Returns number of registered game modes. |
zp_gamemodes_set_allow_infect | Sets whether zombies can infect humans for the current game mode. |
zp_gamemodes_get_allow_infect | Returns whether zombies are allowed to infect humans for the current game mode. |
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.) |
zp_fw_gamemodes_choose_post | Called when a game mode is chosen for the current round. |
zp_fw_gamemodes_start | Called when a game mode starts. |
zp_fw_gamemodes_end | Called when a game mode ends. Note: this can pass ZP_NO_GAME_MODE (if no game mode was in progress). |
This documentation was automatically generated using pawn-docgen made by xPaw for AlliedMods.