Advertisement
Guest User

Anti-Hotspot Shield By Jurgen

a guest
Jan 14th, 2014
3,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.75 KB | None | 0 0
  1. // Anti-HotsPot Shiel By Jurgen creator of megamania
  2. // The code autoban a player with direction hostpot
  3. // Add to gm
  4. // This code work with plugin dns by Incognito DNS Plugin v2.4
  5. // http://forum.sa-mp.com/showthread.php?t=75605
  6. // Add plugin to server.cfg
  7. // In linux add: dns.so and windows dns in line of plugins
  8.  
  9. #include <a_samp>
  10. #include <dns>
  11.  
  12. public OnPlayerConnect(playerid)
  13. {
  14.  
  15.     GetPlayerHost(playerid);// get host of ip
  16.    
  17.     return 1;
  18. }
  19.  
  20.  
  21. // Get direction of ip anchorfree is the direction of ips hotspot shield
  22. // Apply banex to name proxy
  23. // Simple and effective ;)
  24. public OnReverseDNS(ip[], host[], extra)
  25. {
  26.     if(strfind(host,"anchorfree.com", true) != -1) return BanEx(extra,"PROXY");// the ban show in ban.samp
  27.     return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement