1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

anti vpn

Discussion in 'Skript' started by Funck, Dec 8, 2019.

Thread Status:
Not open for further replies.
  1. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    hi. i have problem when maked anti-vpn. i have code, but it don't working.

    Code (Text):
    1.     set {module.vpncheck.result.%player%} to text from "https://proxycheck.io/v2/155.94.250.89?key=111111-222222-333333-444444&vpn=1&asn=1&node=1&time=1&inf=0&risk=1&port=1&seen=1&days=7&tag=msg"
    2.     map json {module.vpncheck.result.%player%} to {module.vpncheck.scan.%player%::*}
    3.     if "%{module.vpncheck.scan.%player%::proxy}%" is "yes":
    4.         kick player due to "error, vpn active"
    the link shows (https://proxycheck.io/v2/155.94.250.89?key=111111-222222-333333-444444&vpn=1&asn=1&node=1&time=1&inf=0&risk=1&port=1&seen=1&days=7&tag=msg) that proxy is yes
     
  2. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Can you show us where the variable {module.vpncheck.scan.%player%::emoji_stuck_out_tongue:roxy} is set?
    --- Double Post Merged, Dec 8, 2019, Original Post Date: Dec 8, 2019 ---
    Oops
    Code (Skript):
    1. {module.vpncheck.scan.%player%::proxy}
    --- Double Post Merged, Dec 8, 2019 ---
    Try this:
    Code (Skript):
    1.  
    2. set {VPN::IsUsingVPN::%uuid of player%} to line 12 from text from "https://proxycheck.io/v2/155.94.250.89?key=111111-222222-333333-444444&vpn=1&asn=1&node=1&time=1&inf=0&risk=1&port=1&seen=1&days=7&tag=msg"
    3. if {VPN::IsUsingVPN::%uuid of player%} contains "yes":
    4. kick player due to "VPN?"
    5.  
    Fix "TABS" or Spaces
     
  3. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    error:

    Can't understand this expression: 'line 12 from text from "https://proxycheck.io/v2/155.94.250.89?key=111111-222222-333333-444444&vpn=1&asn=1&node=1&time=1&inf=0&risk=1&port=1&seen=1&days=7&tag=msg"' (auth.sk, line 312: set {VPN::IsUsingVPN::%uuid of player%} to line 12 from text from "https://proxycheck.io/v2/155.94.250.89?key=111111-222222-333333-444444&vpn=1&asn=1&node=1&time=1&inf=0&risk=1&port=1&seen=1&days=7&tag=msg"')
     
  4. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Yo please send me what {module.vpncheck.result.%player%} returns
     
Thread Status:
Not open for further replies.

Share This Page

Loading...