09-17-2017, 08:58 AM
(09-16-2017, 09:46 PM)AmirGT Wrote: I know but I'm talking about if some one gonna evade and found that CyberGhost is blocked then they will try another VPN so it's not a big problem.
Nothing of that, Everyone now knows how to protect his server from Proxy,VPN,Ban evaders, some of Server owners scripted for the VPNs, but others who scripted & released on sa-mp forums so people used it.
![[Image: 5SV3Ehv.png]](http://i.imgur.com/5SV3Ehv.png)
Code: (Select All)
public OnPlayerConnect(playerid)
{
new ip[16], string[59];
GetPlayerIp(playerid, ip, sizeof ip);
format(string, sizeof string, "www.shroomery.org/ythan/proxycheck.php?ip=%s", ip);
HTTP(playerid, HTTP_GET, string, "", "MyHttpResponse");
return 1;
}
It'll detect the VPNs from this IPs
if(data[0] == 'Y')
{
format(string, 256, "[PROXY DETECTED] %s(%d) has been kicked from the server.", name, playerid);
SendClientMessageToAll( 0xFF0000FF, string);
SendClientMessage(playerid, 0xFF0000FF, "_________Please disable your proxy/VPN and rejoin!_________");
SetTimerEx("DelayedKick", 100, false, "i", playerid);
}
- Thanks to Post4VPS & Host4Fun for the amazing VPS 1 -