View Single Post
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 12-28-2019 , 10:53   Re: Weapon Menu Creator [ V 1.0 ]
Reply With Quote #51

If I may I attach a modified sma.

Changes I made in the code:
- Version changed to 1.01
- If the Restrict Weapons plugin is running then block buy except equipment and ammo
~New cvar for feature above: block_defaultbuy 1 (defaults to 1) (needs map change to be active again if turned off)
~~Requirement: restmenu.amxx needs to be running
- Added missing 'return' if the player has less money than required
- If the player has bought a primary and doesn't have enough money for a Secondary then it will open the Secondary menu again, not the Primary
- Team restriction now prints more detailed message
- The plugin now really pauses itself if the cvar's value is 3
- If the player is a T and has C4 drop it before equipment gets stripped
- Add back defuse kit if player is CT and had it before strip
- Command is hidden from chat when used
- Skip bots at spawn

- oops, forgot to set back userHadDefkit to false, just did it.

Your old (version 1.0) weapons_menu_creator.ini is compatible with this version.
Tested with AMXX 1.10.5388.
Both positive and negative feedback are welcome
Attached Files
File Type: sma Get Plugin or Get Source (WeaponsMenuCreator.sma - 231 views - 11.7 KB)

Last edited by RaZ_HU; 12-28-2019 at 11:49. Reason: Thigpack fix
RaZ_HU is offline