AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [ANY] No Caps in chat-Caps disabler (https://forums.alliedmods.net/showthread.php?t=117906)

bouncer 02-05-2010 23:23

[ANY] No Caps in chat-Caps disabler
 
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 02-06-2010 21:04

Re: [ANY] No Caps in chat-Caps disabler
 
Is this possible? Anyone?

bouncer 02-07-2010 22:04

Re: [ANY] No Caps in chat-Caps disabler
 
Could someone please let me know at least if this is possible with a sourcemod plugin?

meng 02-08-2010 00:57

Re: [ANY] No Caps in chat-Caps disabler
 
Well its easy enough to disable caps. altogether. What SM version do you run?

bouncer 02-08-2010 14:51

Re: [ANY] No Caps in chat-Caps disabler
 
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.

meng 02-08-2010 19:24

Re: [ANY] No Caps in chat-Caps disabler
 
1 Attachment(s)
Here, really simple plugin but should work fine and efficiently.
Just edit MAXCAPS and MESSAGE at the top of the script and compile yourself.

bouncer 02-08-2010 19:31

Re: [ANY] No Caps in chat-Caps disabler
 
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.

pheadxdll 02-08-2010 20:16

Re: [ANY] No Caps in chat-Caps disabler
 
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.

bouncer 02-08-2010 20:23

Re: [ANY] No Caps in chat-Caps disabler
 
Yeah percentage is better.. but I'm not a coder :(

meng 02-08-2010 20:25

Re: [ANY] No Caps in chat-Caps disabler
 
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.


All times are GMT -4. The time now is 04:06.

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