Raised This Month: $32 Target: $400
 8% 

Same IP Blackout v2.0 - n0br41ner


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 06-21-2012 , 10:29   Same IP Blackout v2.0 - n0br41ner
Reply With Quote #1

NOTE: currently this plugin is not working correctly, and i don't have time to fix it at the moment. I ask it to be unapproved until further notice. For a working version try http://forums.alliedmods.net/showpos...0&postcount=37 (not tested)

I am currently working on a new updated version...


Same IP Blackout:
--------------------

This plugin will give the admins access to use a command that will scan all the present players and will compare their IPs. Then this command will return to that admin the names of the players who have the same IP.

This way, the admin will know witch players are playing from the same place and are probably ghosting. Also this plugin allows the activation of a new fade to black function that turn the players who has the same IP screen into black. This is an imitation of fade to black.

It will only blackout their screen when they are dead.


Commands:
-------------
  • amx_scanips - Scans and prints the players with identical IPs
  • amx_printips - Prints the players IPs


Cvars:
--------
  • amx_blackout <1|0> - (default: 1) Enable the blackout function for players with similar IPs


Installation:
--------------
  • Copy SameIPBlackout.amxx to cstrike/addons/amxmodx/plugins
  • Go to cstrike/addons/amxmodx/configs/plugins.ini and add: SameIPBlackout.amxx


Modules:
----------

amxmodx
fakemeta


Credits:
---------
  • MPNumb for helping me a lot in learning how to code, if it wasn't for him i would have never been able to make this plugin.
  • ConnorMcLeod for helping me with ScreenFade and how to block other ScreenFade messages.
  • All who helped me through ScriptingHelp.


Change Log:
--------------

1.0: 21/JUNE/2012
  • initial release
1.1: 21/JUNE/2012
  • removed dependency of ConnorMcLeod util
1.2: 22/JUNE/2012
  • added refresh when player joins or disconnects
  • added refresh when plugin is unpaused
  • removed refresh when admin type the command
2.0: 24/September/2012
  • complete rewriting of the code
  • added print command

To do:
-------
  • Remove the dependency of ConnorMcLeod include. Will be able to compile online. (DONE)
  • Add MultiLingual support
  • Add file where admins can add IPs to be blacked out

121
Attached Files
File Type: sma Get Plugin or Get Source (SameIPBlackout.sma - 1227 views - 6.6 KB)
__________________

Last edited by n0br41ner; 01-16-2013 at 22:41. Reason: update to 2.0
n0br41ner is offline
ChoseNNNN
New Member
Join Date: Jun 2012
Old 06-21-2012 , 11:38   Re: Same IP Blackout v1.1 - n0br41ner
Reply With Quote #2

Great! Tried it with my cousin, works just fine!
ChoseNNNN is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 06-21-2012 , 18:42   Re: Same IP Blackout v1.1 - n0br41ner
Reply With Quote #3

It is possible to make this just make that player hat forcecam so he can only spec teamates?
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 06-21-2012 , 18:43   Re: Same IP Blackout v1.1 - n0br41ner
Reply With Quote #4

Updated to v1.2:
  • added refresh when player joins or disconnects
  • added refresh when plugin is unpaused
  • removed refresh when admin type the command

Quote:
Originally Posted by jonnzus
It is possible to make this just make that player hat forcecam so he can only spec teamates?
I will look into that, and maybe implement it and make a cvar whether to choose the fadetoblack or forcechasecam effect.
__________________

Last edited by n0br41ner; 06-21-2012 at 18:44.
n0br41ner is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-21-2012 , 23:06   Re: Same IP Blackout v1.1 - n0br41ner
Reply With Quote #5

Quote:
Originally Posted by n0br41ner View Post
I will look into that, and maybe implement it and make a cvar whether to choose the fadetoblack or forcechasecam effect.
I would be the best! If you do it the problem of monitoring will be finally solved.
__________________
isotonic is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-21-2012 , 23:15   Re: Same IP Blackout v1.2 - n0br41ner
Reply With Quote #6

Quote:
Originally Posted by n0br41ner View Post
This is an imitation of fade to black.
What? How is it an "imitation"? You just do fade to black.

Also, amxmisc is not a module. Fakemeta is a module.
__________________
fysiks is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 06-22-2012 , 06:02   Re: Same IP Blackout v1.2 - n0br41ner
Reply With Quote #7

The main idea of fadetoblack is the fact that the users screen is all blacked out. In this case i am blacking out some players screens only so he cannot spectate.
__________________
n0br41ner is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 06-23-2012 , 17:36   Re: Same IP Blackout v1.1 - n0br41ner
Reply With Quote #8

Quote:
Originally Posted by isotonic View Post
I would be the best! If you do it the problem of monitoring will be finally solved.
On second thought, i had a small chat with my friend today and the result was: forcing forcechasecam like on a players who have the same IP won't solve anything. What if 3 players with the same IP are playing, 2 goes TERRORIST and the other 1 goes COUNTER TERRORIST. 1 of them TERRORIST players dies, he will still able to spec his teammates, so he will be ghosting about the players positions to the other COUNTER TERRORIST.

I am sorry, but implementing this feature won't be a good idea i guess. But thank you for your suggestion. For now, fade to black will remain the only effect on players with same IPs.
__________________

Last edited by n0br41ner; 06-23-2012 at 17:36.
n0br41ner is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 06-23-2012 , 18:23   Re: Same IP Blackout v1.2 - n0br41ner
Reply With Quote #9

May be just fade to black if there are players with the same IP in different teams? Otherwise mp_forcechasecam effect.
It is not so interesting to see black screen so it can be the reason to loose players. It is a good idea to prevent this when fade to black is not needed really.
And remember not every players with the same IP are monitoring.
__________________

Last edited by isotonic; 06-23-2012 at 19:38.
isotonic is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-23-2012 , 18:59   Re: Same IP Blackout v1.2 - n0br41ner
Reply With Quote #10

Force them to watch the player that has the same IP in first person.
__________________
fysiks 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 07:18.


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