zp_register_game_mode
Registers a custom game mode which will be added to the admin menu of ZP Note: The returned game mode ID can later be used to detect the game mode which is called in zp_round_started_pre. There you can start the game mode externally by using this game mode ID.
Syntax
native zp_register_game_mode( const name[], flags, chance, allow, dm_mode) /** * Registers a custom item which will be added to the extra items menu of ZP. * * Note: The returned extra item ID can be later used to catch item * purchase events for the zp_extra_item_selected() forward. * * Note: ZP_TEAM_NEMESIS, ZP_TEAM_SURVIVOR, ZP_TEAM_ASSASSIN, ZP_TEAM_SNIPER and ZP_TEAM_BERSERKER * can be used to make an item available to Nemesis, * Survivors, Assassins, Snipers and Berserkers. * * @param name Caption to display on the menu. * @param cost Ammo packs to be deducted on purchase. * @param teams Bitsum of teams it should be available for. * @return An internal extra item ID, or -1 on failure. */ native zp_register_extra_item(const name[], cost, teams) // New Natives native zp_extra_item_textadd(const text[]) // Add Text On Extra Item (Like ZP 5.0) native zp_zombie_class_textadd(const text[]) // Add Text On Zombie Class (Like ZP 5.0) native zp_get_user_infectnade(id) // Get User Infect bomb native zp_set_user_infectnade(id, set) // Give/Remove User Infect bomb native zp_get_user_frozen(id) // Get User Frozen native zp_set_user_frozen(id, set) // Set User Burning native zp_get_user_burn(id) // Get User Burning native zp_set_user_burn(id, set) // Set User Burning native zp_get_user_madness(id) // Get user Madness native zp_set_user_madness(id, set) // Set user Madness
Usage
| name | The game modes name which will also be used by other plugins |
| flags | Access flags required by the admins to start this game |
| chance | Chance level of this game mode. (1 in X) The higher the value |
| allow | Whether to permit infection or not after a zombie's attack |
| dm_mode | Death match mode during this game. Use ZP_DM_NONE to disable |
Return
An — internal game mode ID or -1 on failure
Defined in
zombie_plague_special.inc
at line 679
.
This documentation was automatically generated from source.