Raised This Month: $51 Target: $400
 12% 

Grenade Spam Punish


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 4376 views - 6.4 KB)

Last edited by DaSoul; 08-30-2007 at 14:51. Reason: Release 1.4 version - untested version
DaSoul is offline
SubFive
Senior Member
Join Date: Dec 2005
Location: USA
Old 01-09-2006 , 19:32  
Reply With Quote #2

Remove the Plugin - part, mods wont be happy about that.
SubFive is offline
DaSoul
Senior Member
Join Date: Jan 2006
Old 01-09-2006 , 19:34  
Reply With Quote #3

You mean from the text of the sma and the email? Or what? I am not sure what you mean. The sticky didnt say I could not use the word plugin....
DaSoul is offline
Dirty DuMont
Member
Join Date: Jan 2006
Old 01-09-2006 , 19:39  
Reply With Quote #4

He means remove the "Plugin - " from your topic name.
Dirty DuMont is offline
Send a message via AIM to Dirty DuMont
DaSoul
Senior Member
Join Date: Jan 2006
Old 01-09-2006 , 19:40  
Reply With Quote #5

I did not put "Plugin" in my topic name...
DaSoul is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-09-2006 , 20:32  
Reply With Quote #6

It automatically shows up when you view the post.

shh
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Dirty DuMont
Member
Join Date: Jan 2006
Old 01-09-2006 , 20:53  
Reply With Quote #7

I knew that...
Dirty DuMont is offline
Send a message via AIM to Dirty DuMont
DaSoul
Senior Member
Join Date: Jan 2006
Old 01-09-2006 , 21:42  
Reply With Quote #8

Quote:
Originally Posted by v3x
It automatically shows up when you view the post.

shh
Odd... I dont see Plugin- on any posts...

Anyways, does anybody know how long it takes for a plugin to get approved?

Also any input on this plugin will be appreciated.
DaSoul is offline
uTg | bigpapajiggs
Senior Member
Join Date: Sep 2005
Location: Bellingham, WA
Old 01-09-2006 , 22:32  
Reply With Quote #9

For a plugin to get approved it needs:

A. To be liked
B. To be unique
C. To be coded well
D. To be unique

It can take any amount of time the mods want.
__________________
What's my confidence level? I do crossword puzzles with a pen.
uTg | bigpapajiggs is offline
Send a message via AIM to uTg | bigpapajiggs Send a message via MSN to uTg | bigpapajiggs Send a message via Yahoo to uTg | bigpapajiggs
pixel3
Senior Member
Join Date: Dec 2005
Old 01-10-2006 , 09:34  
Reply With Quote #10

Well... lets say I play fy_pool_day and I pick up another grenade from pool then I get slayed? If so.. then you should make another cfg file or u can use the same one where I can put map names where I want to use more than one grenade. Propably some he_* maps
pixel3 is offline
Reply



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 00:06.


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