I originaly posted this over at
DoD Plugins, but I though I should post it over here as well.
Description:
If you're anything like me you hate it when people constantly use CAPS, this plugin attempts to make the world a better place by punishing those who overuse upercase characters by giving them a good slap and taking away all their weapons and giving them a spade.
CVARS:
Code:
***** CVARs:
*****
** amx_caps_minlen <length> - Minimum length of string to get checked for caps overuse (default 7)
** amx_caps_minpercent <1-100> - Minimum percentage of caps in string to trigger punishment (default 50)
** amx_caps_slapdamage <0-100> - Amount of damage to slap the caps abuser for (default 10)
** amx_caps_obeyimmunity <0|1> - Should admin with ADMIN_IMMUNITY be immune (default 0)
** amx_caps_givespade <0|1> - Should the caps abuser be given a spade or their team specific melee weapon (0 = team specific, 1 = spade, default is 1)
**
Code:
***** ChangeLog:
*****
**
** v0.1b 27/04/2005
** - Initial release
** v0.2b 27/04/2005
** - Simpler and more efficient way of caps checking, no more need for regex. Thanks to Zor :)
** v0.3b 28/04/2004
** - Added amx_caps_obeyimmunity to make admin with ADMIN_IMMUNITY immune
** - Added amx_caps_givespade to give abuser spade or team specific melee weapon
**
This is my first plugin release so be gentle, I'd really appreciate some suggestions and some feedback on this, both on the plugin its self and on my code.
Pyro