AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Req] No more than 3 digits (https://forums.alliedmods.net/showthread.php?t=240857)

vikassharma 05-23-2014 11:32

[Req] No more than 3 digits
 
Hello people,
Can someone make a small plugin which doesn't allow to type more than 3 digits actually i want it as a anti spam of ip's i tried all plugins of alliedmods they works but player can still spam ip's by different way thats y i want to disable more than 3 digit

Please someone make it i search alot but did not find

Black Rose 05-23-2014 17:36

Re: [Req] No more than 3 digits
 
Any regex swear filter:
\d+\D+\d+\D+\d+\D+\d+(?:\D+\d+)?

Quote:

Originally Posted by Black Rose (Post 2139514)
This will catch any number of digits followed by any number of non digits, repeated 3 times without the non-digits at the end and optional port after that.
It is very vague but there's no good way around it. The problem is that it will also catch for example:
"Hello, I got 25 kills, 10 deaths. That will make a k:d ratio of 2.5. Amaze"
But who writes 4 numbers in once sentence? I don't think that's very common.


vikassharma 05-24-2014 01:05

Re: [Req] No more than 3 digits
 
Anyone who can make it ?

YamiKaitou 05-24-2014 07:39

Re: [Req] No more than 3 digits
 
There are already chat filter plugins that use Regex. Just use one of those and the regex filter above

vikassharma 05-24-2014 08:51

Re: [Req] No more than 3 digits
 
Quote:

Originally Posted by YamiKaitou (Post 2141844)
There are already chat filter plugins that use Regex. Just use one of those and the regex filter above

Can i have link please i'm unable to find thanks.

vikassharma 05-24-2014 09:00

Re: [Req] No more than 3 digits
 
Quote:

Originally Posted by ANTICHRISTUS (Post 2141864)
just search chat, or swear, or filter in titles (in different sub-forums), you'll find almost everything you are looking for.

Dude those swear filter only block abusive words according to .ini file

But i want a plugin which doesn't allow more than 3 digit in chat

For eg : 123 is allowed in chat but 12344 or 123.1 or 123.123.123 etc not allowed and instead it should print a message "You exceed the digit limit.."

YamiKaitou 05-24-2014 09:32

Re: [Req] No more than 3 digits
 
Quote:

Originally Posted by vikassharma (Post 2141861)
Can i have link please i'm unable to find thanks.

For starters, the thread Black Rose quoted

vikassharma 05-24-2014 09:44

Re: [Req] No more than 3 digits
 
Quote:

Originally Posted by YamiKaitou (Post 2141876)

Srry , but why you misguiding me i don't want that chat plugin how many time should i explain you my request :\

Please coperate don't misguide

YamiKaitou 05-24-2014 10:12

Re: [Req] No more than 3 digits
 
Quote:

Originally Posted by vikassharma (Post 2141879)
Srry , but why you misguiding me i don't want that chat plugin how many time should i explain you my request :\

Please coperate don't misguide

Did you even bother to read what the plugin can do?

Quote:

Originally Posted by Black Rose (Post 2108937)
Ultimate Chat: Swear will allow you to censor certain words using regular expressions.

Swear
Changelog:
Code:

Version 1.0
* Release

Version 1.1
* Regex is now case-insensitive.

Version 1.2
* Upgraded the size for the channel string since it would get cut off otherwise in combination with other plugins.

Commands, cvars and explanations:
Code:

Cvars:
Run the plugin once. It will automatically create a file called uc_swear.ini in your configs dir. It contains information on how to add expressions.

Cvars:
uc_swear_enabled "1"
        1        Enabled
        0        Disabled

uc_swear_allowadmin "1"
        1        An admin can bypass the swear check if they have the correct admin flag.
        0        Even admin messages will be filtered.

uc_swear_showadmin "1"
        1        Admins will see the unfiltered message if they have the correct admin flag.
        0        Admins will see what everyone else sees.

uc_swear_adminflag "n"
        Decides what flag is required for uc_swear_allowadmin and uc_swear_showadmin.

uc_swear_mode "2"
        1        Block the message completely.
        2        Replace censored text with stars.
        3        Replace with cvar defined text.

uc_swear_replacewith "-snip-"
        If uc_swear_mode is set to 3 you can define what the blocked text will be replaced with using this cvar.



vikassharma 05-24-2014 10:25

Re: [Req] No more than 3 digits
 
Quote:

Originally Posted by YamiKaitou (Post 2141896)
Did you even bother to read what the plugin can do?

"Swear will allow you to censor certain words"

Man, see i don't want those type of swear plugin, i want a plugin which should not allow to type more than 3 digit in chat

For eg : If someone type in chat 123.123.123:27015 it should print "You Exceed the allowed digit"

If player type in chat : 123 it should not hide it

Hope i'm clear enough now :down:


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

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