zp_gamemodes_set_default

Sets a default game mode (to start if no other game mode can been started).

Syntax

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() /** * Returns a game mode's ID. * * @param name Game mode name to look for. * @return Internal game mode ID, or ZP_INVALID_GAME_MODE if not found. */ native zp_gamemodes_get_id(const name[])

Usage

game_mode_id A valid game mode ID.

Return

True — on success, false otherwise.

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