View Single Post
DPT
Member
Join Date: Jun 2011
Old 12-21-2012 , 07:19   Re: Same IP Blackout v2.0 - n0br41ner
Reply With Quote #26

Alright I just tested your plugin again in the server, there are two problems in your code.

First, change this:
PHP Code:
get_user_iptempidg_iPlayersIPs[tempid], charsmaxg_iPlayersIPs[] ) ); 
To this:
PHP Code:
get_user_iptempidg_iPlayersIPs[tempid], charsmaxg_iPlayersIPs[] ), ); 

This will remove the port from the ip address (sometimes players join from different remote ports).. Now IP matching will be correct.

For example:

Player A ip is: 217.60.21.5:27005

Player B ip is: 217.60.21.5:27006

Your code sees that those ips are not identical because of the port number. With the new code i gave you above, it will solve this problem by removing the port from the ip address.


Second, as I told you previously, the blacking out will only work if someone issues the amx_scanips command.

You want the plugin to automatically black out screens of same ips even if no one issues the amx_scanips command.

You need to do something like including the ScanIPs procedure in the Refresh procedure or anything similar.

If you allow me, I will correct your code and post it here and then you may update your thread with the new fixed code. Overall, nice job

Last edited by DPT; 12-21-2012 at 07:28.
DPT is offline