zp_game_mode_selected
Called when an admin selects a custom game mode from the ZP admin menu. Note: You should trigger the custom game mode here with out any checks
Syntax
forward zp_game_mode_selected(gameid, id) /** * Called when a player buys an extra item from the ZP menu. * * Note: You can now return ZP_PLUGIN_HANDLED in your plugin to block * the purchase and the player will be automatically refunded. * * @param id Player index of purchaser. * @param itemid Internal extra item ID. */ forward zp_extra_item_selected(id, itemid) /** * Called when a player gets unfrozen (frostnades). * * @param id Player index. */ forward zp_user_unfrozen(id) /** * Called when a player becomes the last zombie. * * Note: This is called for the first zombie too. * * @param id Player index. */ forward zp_user_last_zombie(id) /**
Usage
| gameid | Internal custom game mode ID |
| id | Player index who selected the game mode |
Defined in
zombie_plague_advance.inc
at line 623
.
This documentation was automatically generated from source.