Posts: 457
Threads: 7
Joined: Jul 2017
05.01.2018, 22:16
(
Последний раз редактировалось Xeon™; 07.01.2018 в 13:21.
)
Proxy Detector
(Last Updated: 2018/01/07 03:17PM)
Hello,
What is this?
This is an include that offers to you a full proxy detection.
What the difference between this and this?
This include give you more advantages like checking toggling the kick feature and also an external callback to use as you wish! nothing controlled and improved the rapidity and stability a bit.
What are the functions/Callbacks?
PHP код:
Functions:
- bool:IsPlayerUsingProxy(playerid)
- ProxyDetectKick(bool:toggle) (Default use under OnGameModeInit)
Callback:
- OnPlayerProxyCheck(playerid, bool:proxy)
Download
Credits:
Author: Gnikllort
Rewritten by: Xeon
Posts: 1,192
Threads: 10
Joined: Dec 2017
Reputation:
0
Well first off its good seeing you release since i haven't seen you release anything since i came here lol so +rep to you but come on guys this will not detect all vpns, isn't the concept based on ip tables? this can't contain all vpns and to me, the only use for this IF IT DOES detect all vpns (which is in my honest opinion wont happen) would only be used to just see who is using a vpn to keep an eye on him, but that is detectable through high ping players.
Posts: 457
Threads: 7
Joined: Jul 2017
Quote:
Originally Posted by RogueDrifter
Well first off its good seeing you release since i haven't seen you release anything since i came here lol so +rep to you but come on guys this will not detect all vpns, isn't the concept based on ip tables? this can't contain all vpns and to me, the only use for this IF IT DOES detect all vpns (which is in my honest opinion wont happen) would only be used to just see who is using a vpn to keep an eye on him, but that is detectable through high ping players.
|
Yes, I know that.
this is why in this include the auto kick is togglable (ProxyDetectKick & IsPlayerUsingProxy function).
I let the user choose since it's not a big deal.
and thanks, its been a long time since last release.
Posts: 579
Threads: 18
Joined: Apr 2017
Reputation:
0
Do u know shroomery.org ain't working anymore? You could check original thread and see that.
Posts: 1,266
Threads: 6
Joined: Oct 2014
PHP код:
if(ProxyAutoKick)
{
new string[89];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "[Proxy Detector]: %s (%d) has been kicked for using a vpn/proxy.", string, playerid);
SendClientMessageToAll(0xFF0000FF, string);
}
Only saying player is kicked but actually not kicking.
PHP код:
default: return printf("The request failed! The response code was: %d", response_code);
response_code is always 200 there.
@gurmani11, these sites have limits on requests :O
@iLearner, it works only moved on new domain
http://proxy.mind-media.com/block/pr...?ip=ipgoeshere
Giving 3 stars due to scripting mistakes :-p
Posts: 282
Threads: 7
Joined: Aug 2014
Reputation:
0
Nice.
Also, you can use:
static bool:IsUsingProxy[MAX_PLAYERS] = {false, ...}; // Set all index to false
Instead of creating a loop in OnGameModeInit
Posts: 457
Threads: 7
Joined: Jul 2017
Oh, sorry didn't pay attention to those little parts.
Fixed! updated.
- Domain updated.
- bool: tag added to IsUsingProxy
- Kick is now working!
Thank you everyone!
Posts: 763
Threads: 31
Joined: Oct 2013
Reputation:
0
Good job @Xeon :3
sume reps fur yu :-v
Posts: 457
Threads: 7
Joined: Jul 2017
Quote:
Originally Posted by RogueDrifter
Uhm... i decided to try and compile this and...
Код:
(5349) : error 017: undefined symbol "IsUsingProxy"
(5349) warning 215: expression has no effect
(5349) : error 001: expected token: ";", but found "]"
(5349) : error 029: invalid expression, assumed zero
(5349) : fatal error 107: too many error messages on one line
Line:
PHP код:
if(IsPlayerUsingProxy(playerid)) format(pbstring,sizeof(pbstring,".: %s Is on a proxy:.",idname);
Did anyone even try to use this yet?
EDIT: i included the include, just to clear out doubts about that, can you check this out xeon?
|
Fixed that, updated.
Now, everything must be fine!
@Abagail: removed since someone proved that playerip param in OnPlayerProxyCheck is useless, and thanks for your reply, I did edit that.
thanks! this include reached 1,5K views in less than 48 hours I'm so excited!
Posts: 1,506
Threads: 13
Joined: Jun 2015
PHP код:
bool:IsUsingProxy[MAX_PLAYERS]
Char-array!
PHP код:
if(proxy)
{
if(ProxyAutoKick)
{
Could've been one-statement... Anyways, good work.
Posts: 457
Threads: 7
Joined: Jul 2017
Quote:
Originally Posted by Logic_
PHP код:
bool:IsUsingProxy[MAX_PLAYERS]
Char-array!
PHP код:
if(proxy)
{
if(ProxyAutoKick)
{
Could've been one-statement... Anyways, good work.
|
Done and done! thank you.
The script is now very stable.
Posts: 1,506
Threads: 13
Joined: Jun 2015
IsUsingProxy's value is never changed to true...
Posts: 457
Threads: 7
Joined: Jul 2017
Update:
Fixed all the previous bugs.
Posts: 579
Threads: 18
Joined: Apr 2017
Reputation:
0
All of your releases get fixed by posters lul