zp_gamemodes_start

Forces a game mode to start.

Syntax

native zp_gamemodes_start(game_mode_id, target_player = RANDOM_TARGET_PLAYER) /** * Returns number of registered game modes. * * @return Game mode count. */ native zp_gamemodes_get_count() /** * Sets whether zombies can infect humans for the current game mode. * * @param allow True to allow, false otherwise. */ native zp_gamemodes_set_allow_infect(allow = true) /** * Returns whether zombies are allowed to infect humans for the current game mode. * * @return True if allowed, false otherwise. */ native zp_gamemodes_get_allow_infect() /** * 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.) * * @param game_mode_id Internal game mode ID.

Usage

game_mode_id A valid game mode ID.
target_player Player ID to be passed to game mode (optional).

Return

True — on success, false if game mode can't start.

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