Bug 3203 - restmenu.sma - it doesn't care about console cmds and cvars for other mods
restmenu.sma - it doesn't care about console cmds and cvars for other mods
Status: RESOLVED INVALID
Product: AMX Mod X
Classification: Unclassified
Component: Addon: Counter-Strike
trunk
PC All
: P4 enhancement
Assigned To: amxmodx-bugs@alliedmods.net
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-28 07:07 PDT by KWo
Modified: 2013-06-18 07:11 PDT (History)
3 users (show)

See Also:


Attachments
restmenu.sma (22.75 KB, text/plain)
2008-05-28 07:07 PDT, KWo
no flags Details

Description KWo 2008-05-28 07:07:33 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.


Note You need to log in before you can comment on or make changes to this bug.