zp_gamemodes_get_name

Returns a game mode's name.

Syntax

native zp_gamemodes_get_name(game_mode_id, name[], len) /** * Forces a game mode to start. * * @param game_mode_id A valid game mode ID. * @param target_player Player ID to be passed to game mode (optional). * @return True on success, false if game mode can't start. */ 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. */

Usage

game_mode_id A valid game mode ID.
name The buffer to store the string in.
len Character size of the output buffer.

Return

True — on success, false otherwise.

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