AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Don't show Website's from Say (https://forums.alliedmods.net/showthread.php?t=174812)

kramesa 12-25-2011 21:47

Don't show Website's from Say
 
2 Attachment(s)
Description:
This is a simple plugin that blocks any URL you typed in the chat.

Configuration:
Put the 'WebsiteBlock.ini' on 'amxmodx/configs';
Open the 'WebsiteBlock.ini' and put the endings of the website your don't permit.
Example: .com

Changelog:
v0.1 - First Release.
v0.2 - Removed small bugs and added a cvar to disable/enable plugin.
v0.3 - Remake the plugin. Upated tottaly.

Thanks

Sn!ff3r 12-25-2011 22:20

Re: Block URL's on Say.
 
Use regex for this :)

kramesa 12-25-2011 22:41

Re: Block URL's on Say.
 
Quote:

Originally Posted by Sn!ff3r (Post 1619660)
Use regex for this :)

Why?

Devil259 12-25-2011 22:56

Re: Block URL's on Say.
 
- Do a cvar to enable/disable plugin.
-
Code:
if(containi(Arg, ".com") || containi(Arg, ".net") != -1)
->
Code:
if(containi(Arg, ".com") != -1 || containi(Arg, ".net") != -1)

kramesa 12-25-2011 22:58

Re: Block URL's on Say.
 
Quote:

Originally Posted by Devil259 (Post 1619675)
- Do a cvar to enable/disable plugin.
-
Code:
if(containi(Arg, ".com") || containi(Arg, ".net") != -1)
->
Code:
if(containi(Arg, ".com") != -1 || containi(Arg, ".net") != -1)

ok, i will update.

fysiks 12-25-2011 23:00

Re: Block URL's on Say.
 
This has been done before and this is a very unreliable method.

kramesa 12-25-2011 23:24

Re: Block URL's on Say.
 
Quote:

Originally Posted by fysiks (Post 1619678)
This has been done before and this is a very unreliable method.

Why is unreliable?

nikhilgupta345 12-25-2011 23:47

Re: Block URL's on Say.
 
Because there are other websites with different endings (.org, .tk, .edu), etc..

Also, what if they are advertising the website of the server that they are currently on?

Next, just because it has those endings does not mean that they are advertising a site.

It's unreliable also because other things have .com and .net in them. Although rare, it could happen. For example, somebody could type .network or .community or something like that and it would block it as spam.

kramesa 12-25-2011 23:53

Re: Block URL's on Say.
 
Quote:

Originally Posted by nikhilgupta345 (Post 1619693)
Because there are other websites with different endings (.org, .tk, .edu), etc..

Also, what if they are advertising the website of the server that they are currently on?

Next, just because it has those endings does not mean that they are advertising a site.

It's unreliable also because other things have .com and .net in them. Although rare, it could happen. For example, somebody could type .network or .community or something like that and it would block it as spam.

You read my 'To do'?

It is a difficult the administrator announcing site by 'say'. If it is to announce, has several methods, such as AdManager, IMessage, ScrollMessages, etc..

fysiks 12-26-2011 00:19

Re: Block URL's on Say.
 
Exolent's spam blocker is probably better than actually reading the the words of a string. It will essentially catch everything that you are catching and more.


All times are GMT -4. The time now is 21:03.

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