Excessive Buy Punisher (formerly "Kicker")
Posted: Mon Nov 22, 2021 10:12 am
As requested: http://forums.alliedmods.net/showthread.php?t=67229
Excessive Buy Punisher v1.1
by pharse
Description:
This plugin simply slays or kicks players who buy more than <items> items in <time> seconds (specified by CVars).
This is the case e.g. when trying to crash the server by buying lots of weapons with a buy script or when spamming grenades.
See below for some CVar examples of different use.
Features:
Delay time after a player spawns. During this time the picked up items aren't counted.
Option that picked up items are only counted during the buy time (defined by server CVar mp_buytime)
Option that only grenades are counted. Then completely different settings are probably necessary.
Two punishments: slay and kick
Logging to current AMXx logfile (good to track down troublemakers), in the following format:
Excessive Buy Punisher: PUNISHMENT "NAME<STEAM_ID>"
e.g.: Excessive Buy Punisher: slay "pharse<Steam_0:1:23456>"
CVars:
amx_ebp_enable <0/1> default: 1 -- dis-/enables the plugin
amx_ebp_items <10/11/...> default: 10 -- items that may be picked up in <time>
amx_ebp_time <1.0/2.0/...> default: 3.0 -- time in seconds
amx_ebp_delay <1.0/2.0/...> default: 3.0 -- delay time in seconds after spawn, during which the plugin is inactive
amx_ebp_buytimeonly <0/1> default: 1 -- defines if the plugin is active only during the buytime
amx_ebp_nadesonly <0/1> default: 0 -- defines if the plugin counts only grenades
amx_ebp_punishment <0/1> default: 0 -- 0=slay, 1=kick
amx_ebp_log <0/1> default: 1 -- dis-/enables logging to current AMXx logfile
Examples:
I have a server running a "unlimited money"-plugin. But some players keep buying weapons until the server lags or even crashes.
--> You may use the default settings.
I hate it when players spam nades at roundstart, e.g. on cs_office the CTs keep throwing HEs into the building.
amx_ebp_items 5
amx_ebp_time 10.0
amx_ebp_delay 0.0
amx_ebp_nadesonly 1
Requirements:
Compiled & tested with AMX Mod X v1.8.0
Changelog:
Version 1.0
initial release
Completely reworked: Version 1.1
new name! (formerly: Excessive Buy Kicker) Therefore all CVars changed!
new modules: cstrike (now mod-dependent!) & fakemeta
now catching actual buy-action instead of only weapon pickup
added CVars: delay, buytimeonly, nadesonly, punishment, log
changed description etc.
get plugin
get source
Excessive Buy Punisher v1.1
by pharse
Description:
This plugin simply slays or kicks players who buy more than <items> items in <time> seconds (specified by CVars).
This is the case e.g. when trying to crash the server by buying lots of weapons with a buy script or when spamming grenades.
See below for some CVar examples of different use.
Features:
Delay time after a player spawns. During this time the picked up items aren't counted.
Option that picked up items are only counted during the buy time (defined by server CVar mp_buytime)
Option that only grenades are counted. Then completely different settings are probably necessary.
Two punishments: slay and kick
Logging to current AMXx logfile (good to track down troublemakers), in the following format:
Excessive Buy Punisher: PUNISHMENT "NAME<STEAM_ID>"
e.g.: Excessive Buy Punisher: slay "pharse<Steam_0:1:23456>"
CVars:
amx_ebp_enable <0/1> default: 1 -- dis-/enables the plugin
amx_ebp_items <10/11/...> default: 10 -- items that may be picked up in <time>
amx_ebp_time <1.0/2.0/...> default: 3.0 -- time in seconds
amx_ebp_delay <1.0/2.0/...> default: 3.0 -- delay time in seconds after spawn, during which the plugin is inactive
amx_ebp_buytimeonly <0/1> default: 1 -- defines if the plugin is active only during the buytime
amx_ebp_nadesonly <0/1> default: 0 -- defines if the plugin counts only grenades
amx_ebp_punishment <0/1> default: 0 -- 0=slay, 1=kick
amx_ebp_log <0/1> default: 1 -- dis-/enables logging to current AMXx logfile
Examples:
I have a server running a "unlimited money"-plugin. But some players keep buying weapons until the server lags or even crashes.
--> You may use the default settings.
I hate it when players spam nades at roundstart, e.g. on cs_office the CTs keep throwing HEs into the building.
amx_ebp_items 5
amx_ebp_time 10.0
amx_ebp_delay 0.0
amx_ebp_nadesonly 1
Requirements:
Compiled & tested with AMX Mod X v1.8.0
Changelog:
Version 1.0
initial release
Completely reworked: Version 1.1
new name! (formerly: Excessive Buy Kicker) Therefore all CVars changed!
new modules: cstrike (now mod-dependent!) & fakemeta
now catching actual buy-action instead of only weapon pickup
added CVars: delay, buytimeonly, nadesonly, punishment, log
changed description etc.
get plugin
get source