AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Anti Caps Lock (https://forums.alliedmods.net/showthread.php?t=248150)

Dr. McKay 09-13-2014 11:57

[ANY] Anti Caps Lock
 
[ANY] Anti Caps Lock

v1.1.0

Description:
Same idea as this plugin, but it uses Simple Chat Processor instead of blocking/sending the say/say_team commands.

Cvars:
  • anti_caps_lock_version - plugin version
  • anti_caps_lock_auto_update - enables automatic updating (has no effect if Updater is not installed)
  • anti_caps_lock_percent (default 0.9) - percent of letters that must be uppercase before the entire message is lowercased
  • anti_caps_lock_min_length (default 5) - minimum number of letters required before the uppercase check is performed

Overrides:
  • anti_caps_lock_immunity (default root) - admins with access to this override will not have their messages manipulated; this can be overridden in admin_overrides.cfg.

Requirements:
You need Simple Chat Processor (Redux)

Installation:
Install Simple Chat Processor (Redux) if you don't have it already, and then put anticapslock.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load anticapslock" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.1.0 (9/22/14)
    • Added admin immunity
  • v1.0.0 (9/13/14)
    • Initial release

Download Plugin (anticapslock.zip)
View Source (anticapslock.sp)


Requires updater.inc, scp.inc and mckayupdater.sp to compile.

robotortoise 09-14-2014 00:04

Re: [ANY] Anti Caps Lock
 
neat! Awesome idea.

Happy DODs player 09-14-2014 04:08

Re: [ANY] Anti Caps Lock
 
Handy

altair540 09-20-2014 21:20

Re: [ANY] Anti Caps Lock
 
Dr. McKay, How to add your language for example Russian?
Quote:

"А" - "Я"
"а" - "я"

Dr. McKay 09-21-2014 00:47

Re: [ANY] Anti Caps Lock
 
Quote:

Originally Posted by altair540 (Post 2201803)
Dr. McKay, How to add your language for example Russian?

I don't plan to add support for multiple languages, but you could edit the plugin and replace 'A' with your language's first uppercase letter, 'Z' with your language's last uppercase letter, 'a' with your language's first lowercase letter, 'z' with your language's last lowercase letter.

I don't know if CharToLower works in languages other than English though.

altair540 09-21-2014 04:56

Re: [ANY] Anti Caps Lock
 
Quote:

Originally Posted by Dr. McKay (Post 2201842)
I don't plan to add support for multiple languages, but you could edit the plugin and replace 'A' with your language's first uppercase letter, 'Z' with your language's last uppercase letter, 'a' with your language's first lowercase letter, 'z' with your language's last lowercase letter.

I don't know if CharToLower works in languages other than English though.

With the replacement I know, I just wanted to, and English and Russian.

altair540 09-21-2014 05:08

Re: [ANY] Anti Caps Lock
 
With the replacement on his tongue did not work, the error when you compile the plugin.

eric0279 09-21-2014 05:15

Re: [ANY] Anti Caps Lock
 
Hello,

great plugin! Could you add a immunity for a flag?

Dr. McKay 09-22-2014 14:49

Re: [ANY] Anti Caps Lock
 
Quote:

Originally Posted by eric0279 (Post 2201884)
Hello,

great plugin! Could you add a immunity for a flag?

Done, see the first post.

eric0279 09-23-2014 11:06

Re: [ANY] Anti Caps Lock
 
Thanks!


All times are GMT -4. The time now is 08:25.

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