Quote:
Originally Posted by ConnorMcLeod
You forgot the rebuy/autobuy feature that can only be accessed with cstrike module forward CS_InternalCommand.
Also, for buy detection, i suggest you to use client_buy forward, or its method, you can also find orpheu way at #6, code is shorter.
|
Thanks for the reference. I actually looked at restmenu.amxx and saw that cstrike.inc wasn't included so I thought CS_InternalCommand wan't needed anyway. Apparently I should've tested this code more thoroughly. The first post has been updated.
Quote:
Originally Posted by Arkshine
The plugin linked is more complete, can be configured by max number of grenades per round and by time between two grenades thrown. Also, it hooks GiveAmmo which would be more reliable and would catch all the case whatever grenade bought or given.
Therefore, your plugin is kind of redundant.
|
That's the point though. This plugin place restriction on the number of nades you can *buy* and is designed to not interfere with players picking up dropped grenades, or using grenades given by admins, just like how restmenu.amxx does not prevent admin from giving everyone a restricted weapon. The description of Hobo Nade Management gives you the impression of that, but it actually does something quite different.
Looking at the source code for Hobo Nade Management, it has a whole function dedicated to ensure that players won't get slapped around when they try to pickup some dropped grenade. However that function fails to deal with any custom nade drop plugin. The function itself is also not written correctly - the plugin allows you to specific nade limit for each team, but the function pulls the number from ct's limit only.
Also, Hobo Nade Management does not limit the frequency in which you can throw grenades like you mentioned. It does allow nades from being thown near the beginning of a round, but that's an entirely separate feature. I can make another plugin for it if you'd like (there's no reason this feature should be restricted to nades only).