native

zpsp_register_extra_item

Syntax

native zpsp_register_extra_item(const name[], cost, const teams[], lang_by_key, const szLangKey[]);

Description

Registers a custom item which will be added to the extra items menu of ZP.

Parameters

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

Note

The returned extra item ID can be later used to catch item
purchase events for the zp_extra_item_selected() forward.

Note

zpsp_register_extra_item("Custom Item", 10, "SPY, WESKER, MORPHEUS", 1, "LANG_ITEM_1")
can be used to make an item available to Spy, Wesker, Morpheus.

Return

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