/** * Registers a custom item which will be added to the buy menu * * Note: The returned item ID can be later used to catch item * purchase events for the bmm_item_selected() forward. * * @param name Caption to display on the menu. * @param cost Money to be deducted on purchase. * @param teams Bitsum of teams which should be applied for the item. * @param type Category number which should be applied for the item. * @return An internal extra item ID. */native bmm_add_item(const name[], cost, team, type, access=ADMIN_ALL);/*** Called when a player check item * * @param id Player index. * @param itemid Item ID. */forward bmm_item_selected(id, itemid);
2. Plguin supported Zombie Plague Extra ItemsCommands:amx_bmm_category open the menu categories. When adding a weapon with ZP Extra Items, in Buy Menu appears item "Uncategorised", in which they are located. Using amx_bmm_category you can move the items in the appropriate category.You can also move already categorized items. Information about categories saved in file bmm_items.ini.Cvars:- bmm_on 1 Enable/Disable the plugin
- bmm_multiple 1 When registering ZP Extra Items price indicated in ammopacks, that significantly lower than the cost default weapons. This cvar multiplies the set price, if it low.
- bmm_multiple_min 100 Minimum price, after which it is multiplied.
- bmm_multiple_num 1000 How many times to multiple




Wyświetl pełny artykuł