Raised This Month: $ Target: $400
 0% 

Same IP Blackout v2.0 - n0br41ner


Post New Thread Reply   
 
Thread Tools Display Modes
DPT
Member
Join Date: Jun 2011
Old 12-24-2012 , 08:12   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #31

I'll post the fix in a few hours
DPT is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 12-24-2012 , 11:08   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #32

I am really sorry guys, as i said in my past posts im on bacation and mowhere near a laptop/computer. I will fix everything up when i get back home. That will be the 6th of january.
__________________
n0br41ner is offline
DPT
Member
Join Date: Jun 2011
Old 12-24-2012 , 17:49   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #33

I found another flaw in the plugin.

If a user who shares the same ip dies and reconnects (retry), he does not get blacked out.

From the code, only when a person dies it checks whether it should black him out or not. However, if a person reconnects or is a new joiner, he's automatically presumed dead since the round already started. Therefore, the register_event( "DeathMsg", "BlackoutOnDeath", "a" ); does not get called.

I can release the fix now, but I prefer to first test it again on my server before posting all the fixes.

Last edited by DPT; 12-24-2012 at 17:52.
DPT is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 12-24-2012 , 17:53   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #34

I'll be waiting for you. If you need some help or ideas in development you can freely contact me using PM.
__________________
isotonic is offline
DPT
Member
Join Date: Jun 2011
Old 12-25-2012 , 10:02   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #35

Alright, I fixed and fully tested the plugin. It should work fine now. I changed the following in the original plugin:

1) The plugin will now auto blackout same ips if the cvar is set to 1 whether someone issues the amx_scanips command or not.

2) Admins can now be excluded from being blacked out by setting this new cvar amx_admins_blackout to 0 (default is amx_admins_blackout 0).

3) New joiners and people who reconnect will now also be blacked out if they have the same ip.


EDIT: Fixed a mistake. Changed "return PLUGIN_HANDLED" to "return PLUGIN_CONTINUE" when checking for admin blackout.


Enjoy
Attached Files
File Type: sma Get Plugin or Get Source (SameIPBlackout.sma - 481 views - 9.5 KB)

Last edited by DPT; 12-25-2012 at 11:14.
DPT is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 12-25-2012 , 15:36   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #36

Thank you very much!

Just a typo ;)
Quote:
Originally Posted by DPT View Post
2) Admins can now be excluded from being blacked out by setting this new cvar amx_admins_blackout to 0
I believe you mean that admins will be included to blacking out if 1.
__________________

Last edited by isotonic; 12-25-2012 at 15:39.
isotonic is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 12-25-2012 , 15:55   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #37

DPT, your version doesn't compile successfully. There are messages:
Code:
// \sameipblackout.sma(167) : warning 204: symbol is assigned a value that is never used: "strTempid"
// \sameipblackout.sma(192) : warning 209: function "JoinTeam_BlackOut" should return a value
// \sameipblackout.sma(297) : warning 209: function "BlackoutOnDeath" should return a value
I've quickly fixed all that problems.
--

n0br41ner, I hope you make temporary storing IPs in Trie. So you don't need use cycles to find a match. IP address of connected player can't be changed.
Attached Files
File Type: sma Get Plugin or Get Source (SameIPBlackout_fixed.sma - 613 views - 9.3 KB)
__________________

Last edited by isotonic; 12-25-2012 at 15:59.
isotonic is offline
DPT
Member
Join Date: Jun 2011
Old 12-25-2012 , 16:55   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #38

Isotonic.. setting that cvar to 0 excludes admins and setting it to 1 includes admins.. its the same thing lol

Anyhow I guess u were trying to compile it using the web compiler because I compiled it using the win32 compiler and it compiled successfully


Good news: we finally have a reliabe anti-ghosting plugin (until one of my server players finds another bug)

Last edited by DPT; 12-25-2012 at 16:58.
DPT is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 12-25-2012 , 16:59   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #39

But I believe your 1st explanation are more complicated ;)
No, I used local compilier ofc.
I hope so ;)
__________________
isotonic is offline
DPT
Member
Join Date: Jun 2011
Old 12-25-2012 , 17:04   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #40

Now there's only one more thing that is missing.. and I'm not really planning to use my brain anymore on this plugin lol..

Isotonic, maybe you or the owner of the plugin would work on it:

I think it would much better if same ip players stay blacked out until all of the same ips are dead, and then the plugin should return their screens to normal since all who share the same ip are dead.
DPT 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 13:55.


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