zp_get_extra_item_id
Returns an extra item's ID.
Syntax
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 * mode via the admin menu. * @param chance Chance level of this game mode. (1 in X) The higher the value * the lesser the chance that this game mode will be called * @param allow Whether to permit infection or not after a zombie's attack * @param dm_mode Death match mode during this game. Use ZP_DM_NONE to disable * respawning during this game mode * @return An internal game mode ID or -1 on failure */ native zp_register_game_mode( const name[], flags, chance, allow, dm_mode)
Usage
| name | Item name to look for. |
Return
Internal — extra item ID, or -1 if not found.
Defined in
zombie_plague_special.inc
at line 651
.
This documentation was automatically generated from source.