Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Anti-HotsPot Shiel By Jurgen creator of megamania
- // The code autoban a player with direction hostpot
- // Add to gm
- // This code work with plugin dns by Incognito DNS Plugin v2.4
- // http://forum.sa-mp.com/showthread.php?t=75605
- // Add plugin to server.cfg
- // In linux add: dns.so and windows dns in line of plugins
- #include <a_samp>
- #include <dns>
- public OnPlayerConnect(playerid)
- {
- GetPlayerHost(playerid);// get host of ip
- return 1;
- }
- // Get direction of ip anchorfree is the direction of ips hotspot shield
- // Apply banex to name proxy
- // Simple and effective ;)
- public OnReverseDNS(ip[], host[], extra)
- {
- if(strfind(host,"anchorfree.com", true) != -1) return BanEx(extra,"PROXY");// the ban show in ban.samp
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement