View Single Post
Author Message
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 06-07-2014 , 19:23   TOG Case Commands
Reply With Quote #1

Description
This plugin converts chat trigger to all lowercase. This is useful if someone commonly toggles caps lock for whatever reason. Specifically, it checks to see if the chat text starts with ! or /, and if it does, it checks whether the next character is capitolized. If it is, then it blocks the command and resends it as all lowercase.

I only check the first letter for caps because someone might troll with a command like !kick @All (wouldnt do anything because of the capitol 'A' in @All). As such, I check the first letter, and if it is capitolized, the plugin assumes caps lock and converts it.

I originally made this as part of my Chat Tags plugin, but made it into it's own plugin in case someone wants just that feature.

Installation
Place the .smx file in your cstrike/addons/sourcemod/plugins folder.

Servers using this plugin
>>> Click here to check out my other plugins <<<
Attached Files
File Type: sp Get Plugin or Get Source (togcasecommands.sp - 923 views - 1.3 KB)
__________________

Last edited by ThatOneGuy; 07-21-2017 at 16:43.
ThatOneGuy is offline