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.
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.
__________________
Last edited by hoboman; 07-23-2008 at 20:52.
Reason: update