Raised This Month: $ Target: $400
 0% 

[Req] No more than 3 digits


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vikassharma
BANNED
Join Date: Dec 2011
Location: INDIA
Old 05-23-2014 , 11:32   [Req] No more than 3 digits
Reply With Quote #1

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
vikassharma is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-23-2014 , 17:36   Re: [Req] No more than 3 digits
Reply With Quote #2

Any regex swear filter:
\d+\D+\d+\D+\d+\D+\d+(?:\D+\d+)?

Quote:
Originally Posted by Black Rose View Post
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.
__________________
Black Rose is offline
vikassharma
BANNED
Join Date: Dec 2011
Location: INDIA
Old 05-24-2014 , 01:05   Re: [Req] No more than 3 digits
Reply With Quote #3

Anyone who can make it ?
vikassharma is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-24-2014 , 07:39   Re: [Req] No more than 3 digits
Reply With Quote #4

There are already chat filter plugins that use Regex. Just use one of those and the regex filter above
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
vikassharma
BANNED
Join Date: Dec 2011
Location: INDIA
Old 05-24-2014 , 08:51   Re: [Req] No more than 3 digits
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
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 is offline
Old 05-24-2014, 08:54
ANTICHRISTUS
This message has been deleted by ANTICHRISTUS. Reason: forgot the main topic.
vikassharma
BANNED
Join Date: Dec 2011
Location: INDIA
Old 05-24-2014 , 09:00   Re: [Req] No more than 3 digits
Reply With Quote #6

Quote:
Originally Posted by ANTICHRISTUS View Post
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.."
vikassharma is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-24-2014 , 09:32   Re: [Req] No more than 3 digits
Reply With Quote #7

Quote:
Originally Posted by vikassharma View Post
Can i have link please i'm unable to find thanks.
For starters, the thread Black Rose quoted
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
vikassharma
BANNED
Join Date: Dec 2011
Location: INDIA
Old 05-24-2014 , 09:44   Re: [Req] No more than 3 digits
Reply With Quote #8

Quote:
Originally Posted by YamiKaitou View Post
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
vikassharma is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-24-2014 , 10:12   Re: [Req] No more than 3 digits
Reply With Quote #9

Quote:
Originally Posted by vikassharma View Post
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 View Post
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.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
vikassharma
BANNED
Join Date: Dec 2011
Location: INDIA
Old 05-24-2014 , 10:25   Re: [Req] No more than 3 digits
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
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
vikassharma is offline
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 18:42.


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