anti vpn

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Funck

Member
Apr 22, 2018
30
0
6
24
hi. i have problem when maked anti-vpn. i have code, but it don't working.

Code:
    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"
    map json {module.vpncheck.result.%player%} to {module.vpncheck.scan.%player%::*}
    if "%{module.vpncheck.scan.%player%::proxy}%" is "yes":
        kick player due to "error, vpn active"

the link shows (https://proxycheck.io/v2/155.94.250...e=1&inf=0&risk=1&port=1&seen=1&days=7&tag=msg) that proxy is yes
 
Can you show us where the variable {module.vpncheck.scan.%player%::emoji_stuck_out_tongue:roxy} is set?
[doublepost=1575824885,1575824826][/doublepost]Oops
code_language.skript:
{module.vpncheck.scan.%player%::proxy}
[doublepost=1575825473][/doublepost]
Can you show us where the variable {module.vpncheck.scan.%player%::emoji_stuck_out_tongue:roxy} is set?
[doublepost=1575824885,1575824826][/doublepost]Oops
code_language.skript:
{module.vpncheck.scan.%player%::proxy}
Try this:
code_language.skript:
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"
if {VPN::IsUsingVPN::%uuid of player%} contains "yes":
kick player due to "VPN?"

Fix "TABS" or Spaces
 
Can you show us where the variable {module.vpncheck.scan.%player%::emoji_stuck_out_tongue:roxy} is set?
[doublepost=1575824885,1575824826][/doublepost]Oops
code_language.skript:
{module.vpncheck.scan.%player%::proxy}
[doublepost=1575825473][/doublepost]
Try this:
code_language.skript:
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"
if {VPN::IsUsingVPN::%uuid of player%} contains "yes":
kick player due to "VPN?"

Fix "TABS" or Spaces
error:

Can't understand this expression: 'line 12 from text from "https://proxycheck.io/v2/155.94.250...e=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...e=1&inf=0&risk=1&port=1&seen=1&days=7&tag=msg"')
 
Status
Not open for further replies.