Raised This Month: $ Target: $400
 0% 

[ANY] No Caps in chat-Caps disabler


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-05-2010 , 23:23   [ANY] No Caps in chat-Caps disabler
Reply With Quote #1

Pretty basic. Disables people from typing in CAPS all the time.

If player has x CAPS in one comment, print message to chat:

DO NOT TYPE IN CAPS ALL THE TIME! WE CAN UNDERSTAND YOU WITHOUT CAPS!

Is this possible?

Gets annoying seeing people type in caps in chat just to get the attention of others.
__________________


bouncer is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-06-2010 , 21:04   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #2

Is this possible? Anyone?
__________________


bouncer is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-07-2010 , 22:04   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #3

Could someone please let me know at least if this is possible with a sourcemod plugin?
__________________


bouncer is offline
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 02-08-2010 , 00:57   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #4

Well its easy enough to disable caps. altogether. What SM version do you run?
__________________
.
[ 1 Dumerils Boa | 1 Cali King ]...
.
I'm a lil' spirituous.
meng is offline
Send a message via Yahoo to meng
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-08-2010 , 14:51   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #5

I run latest SM and MM. Could you make a plugin that disables caps for the entire sentence only if there are more than X caps in the sentence?

And it would give the player a warning in the chat that can be customized.
__________________


bouncer is offline
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 02-08-2010 , 19:24   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #6

Here, really simple plugin but should work fine and efficiently.
Just edit MAXCAPS and MESSAGE at the top of the script and compile yourself.
Attached Files
File Type: sp Get Plugin or Get Source (TheCapitolKiller.sp - 437 views - 793 Bytes)
__________________
.
[ 1 Dumerils Boa | 1 Cali King ]...
.
I'm a lil' spirituous.

Last edited by meng; 02-08-2010 at 20:23.
meng is offline
Send a message via Yahoo to meng
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-08-2010 , 19:31   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #7

Can't compile yet you were able to? Hmm makes no sense...

Quote:
/groups/sourcemod/upload_tmp/textJbhVLx.sp(11) : error 017: undefined symbol "AddCommandListener"
/groups/sourcemod/upload_tmp/textJbhVLx.sp(12) : error 017: undefined symbol "AddCommandListener"
EDIT:: I even tried compiling your own source code without making any changes to it.
__________________



Last edited by bouncer; 02-08-2010 at 19:48.
bouncer is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 02-08-2010 , 20:16   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #8

Need #include <sourcemod> at the top.

You really should look for a percentage of uppercase characters in a string, instead of just some odd number.
pheadxdll is offline
bouncer
Veteran Member
Join Date: Apr 2009
Old 02-08-2010 , 20:23   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #9

Yeah percentage is better.. but I'm not a coder
__________________


bouncer is offline
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 02-08-2010 , 20:25   Re: [ANY] No Caps in chat-Caps disabler
Reply With Quote #10

UGH, sorry bout that. Uploaded in prev. post.

Hey pheadxdll, why would it compile on my machine without the #include? Weird.

I can use percentage if you want. Really just going for super simple script.

EDIT:
It compiles fine for me even without the #include. You have to compile using sm 1.3. Which is what I thought you used.
__________________
.
[ 1 Dumerils Boa | 1 Cali King ]...
.
I'm a lil' spirituous.

Last edited by meng; 02-08-2010 at 20:31.
meng is offline
Send a message via Yahoo to meng
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 04:06.


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