AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Hobo Nade Management ( FINAL ) (https://forums.alliedmods.net/showthread.php?t=69067)

hoboman 03-27-2008 20:21

Hobo Nade Management ( FINAL )
 
4 Attachment(s)
Hobo Nade Management

Description
:
This plugin was made with "nade drops" in mind and will prevent a player on a team from buying more than x nades per round and also prevent players from throwing a nade x seconds since the beginning of a new round.
Requirements:
Cvars:
hobo_t_maxhe x ( default is 2 ) - prevent a Terrorist player from buying more than x HE Grenades a round
hobo_ct_maxhe x ( default is 2 ) - prevent a Counter Terrorist player from buying more than x HE Grenades a round
hobo_t_maxflash x ( default is 3 ) - prevent a Terrorist player from buying more than x Flash Bangs a round
hobo_ct_maxflash x ( default is 3 ) - prevent a Counter Terrorist player from buying more than x Flash Bangs a round
hobo_t_maxsmoke x ( default is -1 ) - prevent a Terrorist from buying more than x Smoke Grenades a round
hobo_ct_maxsmoke x ( default is -1 ) - prevent a Counter Terrorist from buying more than x Smoke Grenades a round
hobo_slap_damage x ( default 10 ) - slap a player for x damage after he exceeded his maxnade limit
hobo_HE_time x ( default 6 ) - a player may only throw a HE Grenade after x seconds of a new round
hobo_flash_time x ( default 6 ) - a player may only throw a Flash Bang after x seconds of a new round
hobo_smoke_time x ( default 6 ) - a player may start smoking only throw a Smoke Grenade after x seconds of a new round
Plugin Notes:
- setting any of the hobo_(c)t_max(nade) cvars bellow zero will stop the plugin from limiting the nades of the team
- this plugin was made with nade drops in mind, but if you don't run that plugin on your server then you may comment out the NADE_DROPS define for slightly better plugin efficiency

Credits:
VEN - for his "new round/spawn/round start/ round end tutorial"

Changelog:
  • 1.1
    • completely rewritten the plugin using hamsandwich for MUCH better efficiency
    • fixed an annoying, rare bug where a player could get punished for nade spamming when he would kill someone or shoot a hostage while in the buyzone
  • 1.2
    • minor optimizations
    • removed the cstrike module and replaced the natives with fakemeta

THE WEB COMPILER IS TOO OLD TO COMPILE THE NEWEST VERSION OF THIS PLUGIN. IF YOU CANNOT COMPILE LOCALLY THEN DOWNLOAD THE .AMXX FILE AND DO NOT BUG ME ABOUT IT.

Vm|Mayhem 03-29-2008 19:26

Re: Hobo Nade Management
 
GJ nice plugin.

Maurice 04-01-2008 13:07

Re: Hobo Nade Management
 
Seems to be a great plugin! It also forbid buying by the rebuy commands?

hoboman 04-01-2008 13:33

Re: Hobo Nade Management
 
well it doesn't technically forbid...it slaps the player and takes away his newly bought nades

and yes, it works with buy, autobuy and rebuy

Maurice 04-01-2008 15:40

Re: Hobo Nade Management
 
I just tested the plugin and it indeed prevent 100% grenade spam or to use more grenades as allowed. I will use this plugin on my public server, thanks hoboman for releasing this usefull plugin!

Vm|Mayhem 04-03-2008 00:48

Re: Hobo Nade Management
 
Is this an error? Max smoke grenade value is -1?

Code:

t_nadeCount[2] = register_cvar("hobo_t_maxsmoke", "-1")
ct_nadeCount[2] = register_cvar("hobo_ct_maxsmoke", "-1")


Arkshine 04-03-2008 01:09

Re: Hobo Nade Management
 
Quote:

Originally Posted by hoboman's notes
- setting any of the hobo_(c)t_max(nade) cvars bellow zero will stop the plugin from limiting the nades of the team


Vm|Mayhem 04-04-2008 03:23

Re: Hobo Nade Management
 
ah, missed that..thanks.

tentative 04-14-2008 08:21

Re: Hobo Nade Management
 
This is definately the best nade-spam plugin I've tried, and i've tried them all. Really good job! :)

hoboman 04-14-2008 12:55

Re: Hobo Nade Management
 
Updated:

1.1
* completely rewritten the plugin using hamsandwich for MUCH better efficiency
* fixed an annoying, rare bug where a player could get punished for nade spamming when he would kill someone or shoot a hostage while in the buyzone

I highly recommend to everyone who uses the old version of this plugin to upgrade to the new version as it is WAY more efficient

YamiKaitou 04-14-2008 19:58

Re: Hobo Nade Management
 
1.8.0.3660 Compiled version attached at OP's request. PM me if you update the code and I will attach the updated copy

Maurice 04-17-2008 13:16

Re: Hobo Nade Management
 
L 04/17/2008 - 18:01:09: [CSTRIKE] Invalid player 22
L 04/17/2008 - 18:01:09: [AMXX] Displaying debug trace (plugin "hobo_nade_manager1.amxx")
L 04/17/2008 - 18:01:09: [AMXX] Run time error 10: native error (native "cs_get_user_buyzone")
L 04/17/2008 - 18:01:09: [AMXX] [0] hobo_nade_manager1.sma::event_money (line 292)

A few times per day i get this error message. Some players can't buy grenade althought they should be allowed.

hoboman 04-17-2008 13:19

Re: Hobo Nade Management
 
that's from the old version...and I am not gonna support the old verion

Maurice 04-17-2008 13:26

Re: Hobo Nade Management
 
Thanks, didn't know there was a new version. I will try the new one.

hoboman 04-21-2008 14:20

Re: Hobo Nade Management ( FINAL )
 
updated to v1.2 with some very minor optimizations
Quote:

1.2

* minor optimizations
* removed the cstrike module and replaced the natives with fakemeta
I will not be adding anymore features or working on this plugin anymore unless there are major bugs, so I stamped the word "final" in the plugin title.

Mikolas 05-21-2008 19:54

Re: Hobo Nade Management ( FINAL )
 
I guess this does not work with anything lower then 1.8.

unknown unknown unknown hobo_nade_manag bad load

I installed ham sandwich mod, but uuh, things seem to have changed

] amxx list
AMX Mod X 1.71
Authors: David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko, Felix "SniperBeamer" Geyer
Authors: Jonny "Got His Gun" Bergstrom, Lukasz "SidLuke" Wlasinski
Authors: Christian "Basic-Master" Hammacher, Borja "faluco" Ferrer
Compiled: Apr 2 2006, 18:30:05
URL:http://www.amxmodx.org/
Core mode: JIT

] meta list
Currently running plugins:
[ 1] AMX Mod X, v1.71, Apr 2 2006, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 2] E[POD]bot, v5.30, Mar 23 2007, by Count Floyd, LightNinja, The Storm, Markus Heiden, see http://epodbot.bots-united.com
[ 3] Fun, v1.71, Apr 2 2006, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 4] Engine, v1.71, Apr 2 2006, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 5] FakeMeta, v1.71, Apr 2 2006, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 6] CStrike, v1.71, Apr 2 2006, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 7] CSX, v1.71, Apr 2 2006, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 8] Ham Sandwich, v1.8, Jul 5 2007, by AMX Mod X Dev Team, see http://www.amxmodx.org
8 plugins

They no longer seem to be telling me if it is running -_-.

Mikolas 05-21-2008 20:10

Re: Hobo Nade Management ( FINAL )
 
Well that was what was written through console, I just checked through my HLSW and typed the same things and received this

amxx list
20:06:50 Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.71 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.71 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.71 AMXX Dev Team adminhelp.amxx running
[ 4] Multi-Lingual Sys 1.71 AMXX Dev Team multilingual.am running
[ 5] Menus Front-End 1.71 AMXX Dev Team menufront.amxx running
[ 6] Commands Menu 1.71 AMXX Dev Team cmdmenu.amxx running
[ 7] Players Menu 1.71 AMXX Dev Team plmenu.amxx running
[ 8] Teleport Menu 1.71 AMXX Dev Team telemenu.amxx running
[ 9] Maps Menu 1.71 AMXX Dev Team mapsmenu.amxx running
[ 10] Admin Chat 1.71 AMXX Dev Team adminchat.amxx running
[ 11] Anti Flood 1.71 AMXX Dev Team antiflood.amxx running
[ 12] Scrolling Message 1.71 AMXX Dev Team scrollmsg.amxx running
[ 13] Info. Messages 1.71 AMXX Dev Team imessage.amxx running
[ 14] Admin Votes 1.71 AMXX Dev Team adminvote.amxx running
[ 15] NextMap 1.71 AMXX Dev Team nextmap.amxx running
[ 16] TimeLeft 1.71 AMXX Dev Team timeleft.amxx running
[ 17] Pause Plugins 1.71 AMXX Dev Team pausecfg.amxx running
[ 18] Stats Configurati 1.71 AMXX Dev Team statscfg.amxx running
[ 19] Restrict Weapons 1.71 AMXX Dev Team restmenu.amxx running
[ 20] StatsX 1.71 AMXX Dev Team statsx.amxx running
[ 21] CS Misc. Stats 1.71 AMXX Dev Team miscstats.amxx running
[ 22] CS Stats Logging 1.71 AMXX Dev Team stats_logging.a running
[ 23] Warcraft 3 Frozen 2.3.2 Geesu==(Pimp Dad warcraft3FT.amx debug
[ 24] AMX Super 3.7 Bmann_420 & Bo0m amx_super.amxx debug
[ 25] DeagsMapManager 3.0 Deags/AMXX Commu deagsmapmanager running
[ 26] AMX Bank 1.7 twistedeuphoria amx_bank.amxx running
[ 27] Autoresponder/Adv 0.5 MaximusBrood ad_manager.amxx running
[ 28] Team Balancer 1.8b3 Ptahhotep ptb.amxx running
[ 29] Play or Be Kicked 1.4 Brad Jones pbk.amxx running
[ 30] No Rush 2.0 GHW_Chronic GHW_No_Rush.amx running
[ 31] unknown unknown unknown hobo_nade_manag bad load
[ 32] Real Nade Drops 0.4 VEN realnadedrops.a running
[ 33] Descriptive 'Fire 0.1 VEN descriptive_fir running
[ 34] Gas Grenades 1.5a ConnorMcLeod amx_gasnades.am running
[ 35] Grenades Are Heav 1.0 AssKicR grenades_are_he running
[ 36] FrostNades 0.12b Avalanche frostnades.amxx running
[ 37] OOB Zone Protecto 1.02 xeroblood oob_protector.a running
( 31) Load fails: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.
37 plugins, 36 running

20:09:05 Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm.dll v1.71 ini ANY ANY
[ 2] E[POD]bot RUN - epb.dll v5.30 ini Start Never
[ 3] Fun RUN - fun_amxx.dll v1.71 pl1 ANY ANY
[ 4] Engine RUN - engine_amxx.dll v1.71 pl1 ANY ANY
[ 5] FakeMeta RUN - fakemeta_amxx.dl v1.71 pl1 ANY ANY
[ 6] CStrike RUN - cstrike_amxx.dll v1.71 pl1 ANY ANY
[ 7] CSX RUN - csx_amxx.dll v1.71 pl1 ANY ANY
[ 8] Ham Sandwich RUN - hamsandwich_amxx v1.8 pl1 ANY ANY
8 plugins, 8 running

Any clues sir? The first list states something about registerham, which I'm assuming has to do with hamsandwich_amxx, but the latter list states hamsandwich is running. =/

hoboman 05-22-2008 01:53

Re: Hobo Nade Management ( FINAL )
 
are you sure you even installed hamsandwich correctly?
do you have that .ini file in your config folder that came with hamsandwich?

and if you did set it up right then I have no idea wut's wrong...amxx 1.71 is ancient

whosyourdaddy 05-30-2008 21:32

Re: Hobo Nade Management ( FINAL )
 
can you do this so they can only get 1 nade from the buy menu because im using a wc3 server and if they have gloves it also considers that as a buying nade and it will slap them and take the nade away

9evill 06-30-2008 11:47

Re: Hobo Nade Management ( FINAL )
 
Source is still 1.1 version, could you please update it?
Thanks

Mikolas 07-07-2008 18:22

Re: Hobo Nade Management ( FINAL )
 
The version you placed is 1.1, can we have the 1.2 files. Thank you

violentcrimes 07-23-2008 13:44

Re: Hobo Nade Management ( FINAL )
 
bug if you pick up a nade it will slap you also

hoboman 07-23-2008 20:53

Re: Hobo Nade Management ( FINAL )
 
Quote:

Originally Posted by Mikolas (Post 649263)
The version you placed is 1.1, can we have the 1.2 files. Thank you

uploaded the 1.2 source now


if you pick up a nade that you, yourself did not drop then it will count as a new nade

BRIGADIER 12-13-2008 03:50

Re: Hobo Nade Management ( FINAL )
 
Currently running this on 2 servers, works perfectly, except if you pick up a smoke nade it disappears and you get slapped. Should I just set that to -1 and not limit it or is there a fix for this?

Owyn 12-24-2008 12:57

Re: Hobo Nade Management ( FINAL )
 
bad plugin, it counts dropped nades too, so if i pick up a nade i get punished

klash187 01-09-2009 09:59

Re: Hobo Nade Management ( FINAL )
 
Nice plugin dude

really perfect
Nc work keep it up ^__^

bennyr78 01-24-2009 18:50

Re: Hobo Nade Management ( FINAL )
 
Hello, nice plugin.
iam from germany.
Can u helo me?
I allowed with this plugin to buy only 1 he. When the player buy another he, that is not allowed and the money is away. Can u create this so, that the money not away??
Thx for help

mcardo 02-09-2009 16:09

Re: Hobo Nade Management ( FINAL )
 
Not a bad plug-in, just needs perfection

Wishlist:

1. Add a CVAR to enable/disable the SLAP
2. Display the HUD message saying "Only X HE grenades may be purchased" in the center.
3. Allow players to pick-up the nades dropped by other players even if this player has bought the maximum of nades allowed.
4. Allow admins to still "give" (amx_weapon command is affected to whaterver amount was set for this nade_manager plugin) nades to players even if they have exceeded the maximum of nades allowed to be bought.

In other words, add CVARS that will allow limiting the amount of NADES BOUGHT WITHOUT INCLUDING nades that may have been dropped by other players OR nades the ADMIN gives using the amx_weapon commands that exists in many plug-ins such as AMX Super.

Great plug-in nevertheless.

Sputnik53 02-10-2009 17:26

Re: Hobo Nade Management ( FINAL )
 
Could you make this remove the nade bought after exceeded limit and give money back without slapping? :P

aganfitra 10-30-2012 23:14

Re: Hobo Nade Management ( FINAL )
 
can u make it for primary and secondary weapon?

i need plugin to buy only 1 gun in every round, 1 gun primary and 1 gun secondaryhttps://forums.alliedmods.net/images/smilies/cry.gif

chaves 12-09-2015 13:48

Re: Hobo Nade Management ( FINAL )
 
Hello, you could turn off this function slap? since there is a purchase limit because it would need a punishment?
PS: put hobo_slap_damage 0, players take slap, but without damage, are forcing bug to fly the map through the tapas generated by trying to buy.

Siska1 03-16-2023 19:17

Re: Hobo Nade Management ( FINAL )
 
How can I fix this?
https://i.imgur.com/xhByo4g.jpg


All times are GMT -4. The time now is 03:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.