Bugzilla – Bug 3203
restmenu.sma - it doesn't care about console cmds and cvars for other mods
Last modified: 2013-06-18 07:11:56 PDT
Actually I have to admit it was my fault - I didn't notice the plugin can restrict/unrestrict any item from the buy menu also by a console command. So my cvars I've added to this plugin amx_restrweapons and amx_restrequipammo didn't care about that at all. I have modified the plugin once more - I have moved almost all code concerning those cvars to the function setWeapon. So I removed the stuff from loadsettings and from actionMenu functions. The initialisation of g_szWeapRestr and g_szEquipAmmoRestr happens now in plugin_init. Now it looks better and it also works in all cases. Sorry for inconveniance.