View Single Post
AMeEeRo
BANNED
Join Date: Dec 2013
Location: Who care ?
Old 05-18-2014 , 13:10   Re: Ultimate Chat + Addons
Reply With Quote #22

Quote:
Originally Posted by Black Rose View Post
The file is in regular expression. normal words can be used of course as they are also expressions. Just very static ones.
Regex enables you to make it more dynamic. I suggest watching these tutorials on YouTube from Derek Banas:
https://www.youtube.com/playlist?lis...4F2FDD28D0C40E

\d+\D+\d+\D+\d+\D+\d+(?:\D+\d+)?
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.
Thanks but i know nothing about it, and you are right 4 numbers.....
So i add this line just like that ?
PHP Code:
\d+\D+\d+\D+\d+\D+\d+(?:\D+\d+) 
This will block ip ?
How about bad words i have some problems cuz of fk can you learn me simple way ?
i'm suing line like
PHP Code:
fk you
fk u 
To block fk..
Without videos just small examples please and thanks
And i want to ask you how to block, say /rs
I just want to block some commands from being on chat like say /rs say /rank but i don't one to hide words cuz i'm using ad_manger, they use say /ip to spam ip ( on other chat plugins ), I mean i just want to block registered commands like rs rank.. i tried to put the plugins under restscore.amxx and up, same :\
Please help great job again
AMeEeRo is offline