zp_gamemodes_register

Registers a new game mode.

Syntax

native zp_gamemodes_register(const name[]) /** * Sets a default game mode (to start if no other game mode can been started). * * @param game_mode_id A valid game mode ID. * @return True on success, false otherwise. */ native zp_gamemodes_set_default(game_mode_id) /** * Returns default game mode. * * @return A valid game mode ID. */ native zp_gamemodes_get_default() /** * Returns game mode that was chosen for the current round. * * @return An internal game mode ID, or ZP_NO_GAME_MODE. */ native zp_gamemodes_get_chosen() /** * Returns game mode that is currently in progress. * * @return An internal game mode ID, or ZP_NO_GAME_MODE. */ native zp_gamemodes_get_current()

Usage

name Game mode name.

Return

An — internal game mode ID, or ZP_INVALID_GAME_MODE on failure.

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