Raised This Month: $ Target: $400
 0% 

Grenade Spam Punish


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related        Approver:   Xanimos (85)
DaSoul
Senior Member
Join Date: Jan 2006
Old 01-09-2006 , 19:06   Grenade Spam Punish
Reply With Quote #1

/*Grenade Spam Punish
*
* by [gOf]-Soul from http://www.gofclan.org
*
* This is a very simple plugin I wrote to control grenade spamming.
* There were a couple different plugins out that would seem to control
* grenade spamming. But they blocked if you would try to buy extra
* grenades. The ones I tried only blocked you from buying them via
* the regular menu. This plugin keeps you from throwing more grenades
* than the allotted number of grenades allowed by the configuration file
*
* The plugin requires that you use the engine module of amxmodx because
* I remove any grenades from the environment that should NOT have been
* thrown. If you do not want to enable the engine module you can remove
* the requirement by removing the remove_entity(greindex) line at the
* bottom of the script.
*
* Config Flags
* -----------------------------------------------------------------------------
* cvar : mp_grenspampunish
* description: cvar that determins if the grenade spam punish plugin is
* enabled possible values are 1 and 0. To enable the plugin
* set it to 1 to disable the plugin just set it to 0.
* default : 1 (enabled)
*
* cvar : mp_grenspampunish_maxflash
* description: Maximum number of flash bangs allowed to be thrown per round
* default : 2
*
* cvar : mp_grenspampunish_maxhe
* description: Maximum number of he grenades allowed to be thrown per round
* default : 1
*
* cvar : mp_grenspampunish_maxsmoke
* description: Maximum number of smoke grenades allowed to be thrown per round
* default : 1
*
* cvar : mp_grenspampunish_damage
* description: Amount of damage to inflict if someone violates the spam plugin
* Damage of 100 will automatically kill them. The plugin uses the
* user_slap to inflict the damage
* default : 100
*
*
* To load settings for a certain map then place them into the map specific
* config files i.e. amxmodx/configs/maps/de_dust.cfg
*
* -----------------------------------------------------------------------------
*
* **************
* * CHANGE LOG *
* **************
* v1.4
* -Changed Array Declaration to get rid of out of bound error for
* the grencount array
*
* v1.3
* -Took out cstrike reference
* -Code cleanup (thanks to vittu)
*
* v1.2
* -Removed the config file. Place configuration directly into amxx.cfg
* -For map specific configs use the map specific config features provided
* by AmxModx
* -Updated for pcvars - requires 1.70 and higher to use
* -Updated to more dependable register_logevent("funcNewRound", 2, "1=Round_Start")
* instead of ResetHud event
* -Fixed bug of not clearing number of throws when a person joins the server
* caused someone to get punished on first throw
*
* v1.1
* -Updated the plugin to not write the grenade count information
* to the vault. Just used a global variable
*
* -Added map specific grenade counts so that you could specify higher
* grenade throw limits for certain maps like fy_pool_day
*
*/
Attached Files
File Type: sma Get Plugin or Get Source (grenspampunish.sma - 4409 views - 6.4 KB)

Last edited by DaSoul; 08-30-2007 at 14:51. Reason: Release 1.4 version - untested version
DaSoul is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:11.


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