View Single Post
Plugin Info:     Modification:          Category:          Approver:   Emp` (115)
hoboman
Senior Member
Join Date: Jul 2007
Old 03-27-2008 , 20:21   Hobo Nade Management ( FINAL )
Reply With Quote #1

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.
Attached Files
File Type: amxx hobo_nade_manager.amxx (7.8 KB, 931 views)
File Type: sma Get Plugin or Get Source (hobo_nade_manager.sma - 2824 views - 7.7 KB)
__________________

Last edited by hoboman; 07-23-2008 at 20:52. Reason: update
hoboman is offline