Raised This Month: $ Target: $400
 0% 

[ANY] IP Advert Blocker 1.3 - 6/08/2012


Post New Thread Reply   
 
Thread Tools Display Modes
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 04-25-2011 , 16:17   Re: [ANY] IP Advert Blocker
Reply With Quote #11

Would be cool for it to just block IPs without the port as most servers are on 27015 and most people know this.

Also, a cvar to enter a censored text when people do try to enter an IP in chat would be awesome too!

sm_ads_chat_censoredmsg "[I just tried to spam my IP and failed]"

So "hey guys, come to my server at 127.0.0.1" would be "hey guys, come to my server at [I just tried to spam my IP and failed]"
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 04-25-2011 , 16:57   Re: [ANY] IP Advert Blocker
Reply With Quote #12

Quote:
Originally Posted by Xp3r7 View Post
Would be cool for it to just block IPs without the port as most servers are on 27015 and most people know this.

Also, a cvar to enter a censored text when people do try to enter an IP in chat would be awesome too!

sm_ads_chat_censoredmsg "[I just tried to spam my IP and failed]"

So "hey guys, come to my server at 127.0.0.1" would be "hey guys, come to my server at [I just tried to spam my IP and failed]"
noted, next version is going to have hostname block as well
Zephyrus is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 04-27-2011 , 09:32   Re: [ANY] IP Advert Blocker
Reply With Quote #13

Good idea. Thx
MindeLT is offline
Send a message via Skype™ to MindeLT
xomp
BANNED
Join Date: Jul 2008
Old 04-27-2011 , 16:53   Re: [ANY] IP Advert Blocker
Reply With Quote #14

Do you have to use a comma to seperate ip's in the whitelist? or is a blank space sufficient?
xomp is offline
Send a message via Skype™ to xomp
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 04-27-2011 , 20:46   Re: [ANY] IP Advert Blocker
Reply With Quote #15

Quote:
Originally Posted by xomp View Post
Do you have to use a comma to seperate ip's in the whitelist? or is a blank space sufficient?
actually it just checks whether the ip is in the string, ill code a more complex detection in the next version
Zephyrus is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 05-01-2011 , 16:10   Re: [ANY] IP Advert Blocker
Reply With Quote #16

Getting this error when I type: rcon say hi

Code:
L 05/01/2011 - 13:03:35: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 05/01/2011 - 13:03:35: [SM] Displaying call stack trace for plugin "removeads.smx":
L 05/01/2011 - 13:03:35: [SM]   [0]  Line 140, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::IsClientImmune()
L 05/01/2011 - 13:03:35: [SM]   [1]  Line 98, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::Command_CSay()
__________________
Fearts is offline
Vojtoun
Member
Join Date: Apr 2009
Old 05-09-2011 , 11:39   Re: [ANY] IP Advert Blocker
Reply With Quote #17

Same here, extension and plugin loads fine on CS:S, but advert blocking just doesn't work.

Code:
L 05/09/2011 - 17:32:47: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 05/09/2011 - 17:32:47: [SM] Displaying call stack trace for plugin "removeads.smx":
L 05/09/2011 - 17:32:47: [SM]   [0]  Line 140, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::IsClientImmune()
L 05/09/2011 - 17:32:47: [SM]   [1]  Line 98, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::Command_CSay()
L 05/09/2011 - 17:32:48: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 05/09/2011 - 17:32:48: [SM] Displaying call stack trace for plugin "removeads.smx":
L 05/09/2011 - 17:32:48: [SM]   [0]  Line 140, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::IsClientImmune()
L 05/09/2011 - 17:32:48: [SM]   [1]  Line 98, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::Command_CSay()
L 05/09/2011 - 17:34:49: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 05/09/2011 - 17:34:49: [SM] Displaying call stack trace for plugin "removeads.smx":
L 05/09/2011 - 17:34:49: [SM]   [0]  Line 140, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::IsClientImmune()
L 05/09/2011 - 17:34:49: [SM]   [1]  Line 98, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::Command_CSay()
L 05/09/2011 - 17:34:50: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 05/09/2011 - 17:34:50: [SM] Displaying call stack trace for plugin "removeads.smx":
L 05/09/2011 - 17:34:50: [SM]   [0]  Line 140, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::IsClientImmune()
L 05/09/2011 - 17:34:50: [SM]   [1]  Line 98, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::Command_CSay()
__________________
Vojtoun is offline
away000
Veteran Member
Join Date: Sep 2010
Old 06-28-2011 , 18:19   Re: [ANY] IP Advert Blocker
Reply With Quote #18

I'm getting this:



L 06/28/2011 - 16:24:08: Info (map "awp_lego_orangebox") (file "errors_20110628.log")
L 06/28/2011 - 16:24:08: [SM] Native "GetUserFlagBits" reported: Client index 0 is invalid
L 06/28/2011 - 16:24:08: [SM] Displaying call stack trace for plugin "removeads.smx":
L 06/28/2011 - 16:24:08: [SM] [0] Line 140, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::IsClientImmune()
L 06/28/2011 - 16:24:08: [SM] [1] Line 98, /home/groups/alliedmodders/forums/files/7/9/7/8/6/84674.attach::Command_CSay()
L 06/28/2011 - 168:29: [SM] Native "IsClientConnected" reported: Client index 0 is invalid

Thanks.

Last edited by away000; 06-28-2011 at 18:21.
away000 is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 06-28-2011 , 18:28   Re: [ANY] IP Advert Blocker
Reply With Quote #19

oh ive just realized that i forgot to upload the latest one >

edit: try the new one
Zephyrus is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 06-29-2011 , 17:10   Re: [ANY] IP Advert Blocker 1.1
Reply With Quote #20

Just out of curiosity (hopefully it isn't blatantly obvious), why do you have say(_team) hooked twice (Once with RegConsoleCmd and the other with AddCommandListener)?
KyleS 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 15:31.


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