zp_get_current_mode

Returns the current game mode ID Note: For default game modes you can use, for eg. MODE_SWARM, to check if the current round is swarm mode. Note: For custom game modes you must have the custom game mode ID to detect it

Syntax

native zp_get_current_mode() native zp_get_last_mode() // Ver o ultimo mod jogado /** * Returns an extra item's ID. * * @param name Item name to look for. * @return Internal extra item ID, or -1 if not found. */ native zp_get_extra_item_id(const name[]) /** * Returns a zombie class' ID. * * @param name Class name to look for. * @return Internal zombie class ID, or -1 if not found. */ native zp_get_zombie_class_id(const name[]) /** * 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. * * @param name The game modes name which will also be used by other plugins * to identify this game mode * @param flags Access flags required by the admins to start this game

Return

Current — game mode ID

Defined in zombie_plague_special.inc at line 641 . This documentation was automatically generated from source.