native
zp_register_extra_item
Syntax
native zp_register_extra_item(const name[], cost, teams);
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. |
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, ZP_TEAM_SNIPER and ZP_TEAM_BERSERKER
can be used to make an item available to Nemesis,
Survivors, Assassins, Snipers and Berserkers.
Return
An internal extra item ID, or -1 on failure.
Error
If Extra Item name alterady exists