zp_register_extra_item

Registers a custom item which will be added to the extra items menu of ZP. Note: The returned extra item ID can be later used to catch item purchase events for the zp_extra_item_selected() forward. Note: ZP_TEAM_NEMESIS, ZP_TEAM_SURVIVOR, ZP_TEAM_ASSASSIN and ZP_TEAM_SNIPER can be used to make an item available to Nemesis, Survivors, Assassins and Snipers.

Syntax

native zp_register_extra_item(const name[], cost, teams) /** * Registers a custom class which will be added to the zombie classes menu of ZP. * * Note: The returned zombie class ID can be later used to identify * the class when calling the zp_get_user_zombie_class() natives. * * @param name Caption to display on the menu. * @param info Brief description of the class. * @param model Player model to be used. * @param clawmodel Claws model to be used. * @param hp Initial health points. * @param speed Maximum speed. * @param gravity Gravity multiplier. * @param knockback Knockback multiplier. * @return An internal zombie class ID, or -1 on failure. */ native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback) /** * Called when the ZP round starts, i.e. first zombie * is chosen or a game mode begins. * * @param gamemode Mode which has started. * @param id Affected player's index (if applicable). */ forward zp_round_started(gamemode, id) /**

Usage

name Caption to display on the menu.
cost Ammo packs to be deducted on purchase.
teams Bitsum of teams it should be available for.

Return

An internal extra item ID, or -1 on failure.

Defined in zombie_plague_advance.inc . This documentation was automatically generated from source.