Hello, by the way, I am a beginner and I wanted to know how I can determine a price for each weapon in the list, and can I add weapons that are not available in a game like the plasma weapon?
Hello, by the way, I am a beginner and I wanted to know how I can determine a price for each weapon in the list, and can I add weapons that are not available in a game like the plasma weapon?
I haven't touched AMXX scripts in a year but I can help you to an extent, if you're talking about ZP mod, you have natives such as zp_register_extra_item to add new items to the extra item menu, you can determine the price there.
/** * 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 and ZP_TEAM_SURVIVOR can be used to make * an item available to Nemesis and Survivors respectively. * * @param name Caption to display on the menu. * @param cost Ammo packs to be deducted on purchase. * @param teams Bitsum of teams it should be available for. * @return An internal extra item ID, or -1 on failure. */ native zp_register_extra_item(const name[], cost, teams)