Solved Player ping

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

Turb032

Active Member
Jan 16, 2020
109
0
16
21
Hi guys, i'm trying to do a skript that uses condition: "if player's ping is < 130:" ... but it give me an error:
"player's ping" is not an item stack or maybe "victim's ping" is not an entity type. I think my skript version is the problem, but i can't find a supported verion for this, please help!
 
i put this into the parser and no errors, what version of skript are you using?

Code:
every second:
    loop all players:
        if loop-player's ping > 130:
            send "&choly crap get good wifi nerd" to loop-player
 
i put this into the parser and no errors, what version of skript are you using?

Code:
every second:
    loop all players:
        if loop-player's ping > 130:
            send "&choly crap get good wifi nerd" to loop-player

Ok so, i tryed that with this:

every 1 second:
loop all players
if loop-player's ping < 130:
set {location1.%victim%} to victim's location
wait 2 ticks
set {location2.%victim%} to victim's location
if {location1.%victim%} = {location2.%victim%}:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of victim% ms&8)" to loop-player-2

but the error is: there's no loop that maches with "loop-player's ping"
p.s. i'm very bad at skript and i'm using 2.1.2
[doublepost=1579726975,1579726865][/doublepost]
Ok so, i tryed that with this:

every 1 second:
loop all players
if loop-player's ping < 130:
set {location1.%victim%} to victim's location
wait 2 ticks
set {location2.%victim%} to victim's location
if {location1.%victim%} = {location2.%victim%}:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of victim% ms&8)" to loop-player-2

but the error is: there's no loop that maches with "loop-player's ping"
p.s. i'm very bad at skript and i'm using 2.1.2
(i replaced %ping of victim% with %loop-player's ping% and nothing happend)
 
Ok so, i tryed that with this:

every 1 second:
loop all players
if loop-player's ping < 130:
set {location1.%victim%} to victim's location
wait 2 ticks
set {location2.%victim%} to victim's location
if {location1.%victim%} = {location2.%victim%}:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of victim% ms&8)" to loop-player-2

but the error is: there's no loop that maches with "loop-player's ping"
p.s. i'm very bad at skript and i'm using 2.1.2
[doublepost=1579726975,1579726865][/doublepost]
(i replaced %ping of victim% with %loop-player's ping% and nothing happend)
You are supposed to have a ":" after the "loop all players" because otherwise it wouldn't recognize the loop and cause errors.
 
every second:
loop all players:
if loop-player's ping is < 130:
set {location1.%player%} to loop-player's location
wait 2 ticks
set {location2.%player%} to loop-player's location
if {location1.%player%} = {location2.%player%}:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of victim% ms&8)" to loop-player-2

error... There's no loop that matches with "loop-player's ping". Maybe is the version of the plugin that isn't working?
[doublepost=1579811950,1579787813][/doublepost]and please tell me if this is right:
on damage:
if victim is player:
loop all players:
if loop-player's ping < 130:
set {location1.%loop-player%} to loop-player's location
wait 2 ticks
set {location2.%loop-player%} to loop-player's location
if {location1.%loop-player%} = {location2.%loop-player%}:
loop all players:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of loop-player% ms&8)" to loop-player-2
 
Ok so, i tryed that with this:

every 1 second:
loop all players
if loop-player's ping < 130:
set {location1.%victim%} to victim's location
wait 2 ticks
set {location2.%victim%} to victim's location
if {location1.%victim%} = {location2.%victim%}:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of victim% ms&8)" to loop-player-2

but the error is: there's no loop that maches with "loop-player's ping"
p.s. i'm very bad at skript and i'm using 2.1.2
[doublepost=1579726975,1579726865][/doublepost]
(i replaced %ping of victim% with %loop-player's ping% and nothing happend)
Pleased Put it in a Code field.
 
Pleased Put it in a Code field.
how can i do it?
[doublepost=1579996954,1579996924][/doublepost]on damage:
if victim is player:
loop all players:
if loop-player's ping < 130:
set {location1.%loop-player%} to loop-player's location
wait 2 ticks
set {location2.%loop-player%} to loop-player's location
if {location1.%loop-player%} = {location2.%loop-player%}:
loop all players:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of loop-player% ms&8)" to loop-player-2
[doublepost=1579997050][/doublepost]on damage:
if victim is player:
loop all players:
if loop-player's ping < 130:
set {location1.%loop-player%} to loop-player's location
wait 2 ticks
set {location2.%loop-player%} to loop-player's location
if {location1.%loop-player%} = {location2.%loop-player%}:
loop all players:
loop-player-2 has permission "anticheat.notify":
message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of loop-player% ms&8)" to loop-player-2
[doublepost=1579997085][/doublepost]idk how to do that sry
[doublepost=1579997331][/doublepost]
Code:
on damage:
  if victim is player:
    loop all players:
      if loop-player's ping < 130:
        set {location1.%loop-player%} to loop-player's location
        wait 2 ticks
        set {location2.%loop-player%} to loop-player's location
        if {location1.%loop-player%} = {location2.%loop-player%}:
          loop all players:
            loop-player-2 has permission "anticheat.notify":
              message "&8(&c&lAntiCheat&8) &e> &c%attacker% &7Looks like he's using &cAntiKnockback&7: &8(&b%ping of loop-player% ms&8)" to loop-player-2
[doublepost=1579997361][/doublepost]oh ok, here it is, and sry for spam
 
What is your Minecraft and Skript Version?
Skript is old and I think that s the problem, I have 2.1.2. Minecraft 1.8.8 optifine
[doublepost=1579999654,1579999567][/doublepost]
Skript is old and I think that s the problem, I have 2.1.2. Minecraft 1.8.8 optifine
But I can't found a compatible Skript version, idk why but if I install another version all add-ons go red in plug-ins and it won't work
 
Screenshot_20200126-015303.jpg

[doublepost=1580000117,1580000081][/doublepost]Is this the right condition?
 
Done, nothing happend: There's no loop that matches with "loop-player's ping"
 
thank you, i need to install it in bungeecord or in the server plugins?
[doublepost=1580134014,1580057659][/doublepost]ok i tried, but i don't know a thing, i need to put it in bungeecord plugins or in spigot plugins? and if it's bungeecord, how do i use it?
thanks anyways
[doublepost=1580134848][/doublepost]OH OK, i think i solved!!! THANK YOU SO MUCH
 
thank you, i need to install it in bungeecord or in the server plugins?
[doublepost=1580134014,1580057659][/doublepost]ok i tried, but i don't know a thing, i need to put it in bungeecord plugins or in spigot plugins? and if it's bungeecord, how do i use it?
thanks anyways
[doublepost=1580134848][/doublepost]OH OK, i think i solved!!! THANK YOU SO MUCH
set thread as solved please
 
Status
Not open for further replies.