#i need a bit of help
1 messages · Page 1 of 1 (latest)
every 5 seconds:
if block below player is air:
loop all players:
tp player ~ ~-1 ~
if block under player isn't air:
exit 1 loop
I'm not sure if this works
well yes and no
Or just canceling jump boost or something
it allows hacks
but i dont want fly hacks
i have anti cheat but
i had to toggle it down some bc it allows/ made for hacks
plus bypass
I wouldn't use skript for anticheat but whatever
Still
No
and they have a private one for flying so i need this thats why
Mk
nope thxs tho
@olive garnet do you have one?
Well i would loop probably every second, set a var when it first detects theres no block below them, then check how long it has been since that var was set. If ots more than 5 sec or whatever teleport them down until they hit a block
Or teleport them to the highest block
what did i mess up @olive garnet
?
on any move:
player is not riding
set {_diffy} to difference between y location of player and {yloc.%player%}
set {yloc.%player%} to y location of player
if {_diffy} != 0:
something messed up here
idk what tho
it says it dose not understand "on any move:"
@olive garnet
loop all blocks between {_pos} and {_pos2}:
``` mabye work i think
ok
well
it did work thanks
but
i dont think it is like working working lol
not sotping air jump
@south elm do you know how to make it stop air jump?
Im Sorry I Cant Help But Im Still Learning The Last parts Of Skript Im LIke 7/10 At Skript But I Dont Know How To Stop That
Sorry
ok thanks for the help tho
@olive garnet
loop all players
Try to fix it
and use loop-player
Yourself
every second:
loop all players:
if {airtime::%loop-player's uuid%} is set:
if block below loop-player is air:
if difference between {airtime::%loop-player's uuid%} and now > 5 seconds:
#move them down
else:
delete {airtime::%loop-player's uuid%}
else:
if block below player is air:
set {airtime::%loop-player's uuid%} to now
But let them fix it
mmm
So that they learn something
Mhm
1 word and a -
Yep
what
Very simple fix
line 10, loop-player not just player buddy
You also need to add the part that teleports the player
like i know how to
why i made this post lol
.
where
?
do i put
line 6?
Mhm
Maybe do what it says instead of copying it
or teleport tf
Try it
Who are you teleporting though
Teleport an entity to a specific location.
This effect is delayed by default on Paper, meaning certain syntax such as the return effect for functions cannot be used after this effect.
The keyword 'force' indicates this effect will not be delayed,
which may cause lag spikes or server crashes when using this effect to teleport entities to unload...
Alternatively you could push them
Cool
every second:
loop all players:
if {airtime::%loop-player's uuid%} is set:
if block below loop-player is air:
if difference between {airtime::%loop-player's uuid%} and now > 5 seconds:
(push|thrust) %entities% %direction% [(at|with) (speed|velocity|force) %number%] to the highest [(solid|non-air)] block at %locations%
else:
delete {airtime::%loop-player's uuid%}
else:
if block below loop-player is air:
set {airtime::%loop-player's uuid%} to now
i still have no clue where to put it
You put it in the right place
You just have to use it rather than copy and pasting jt
also like whats the point of this skript man
to randomly push players down when they are jumping?
Its an anticheat
@river cedar can you help me
i have no idea what youre talking about
what
hw
how*
the hack allows you to jump on air i want a script to stop it
bruhh
what
can you help me stop it?
if block under the player is air:
push the player down with speed 10```
should combat against that easily
thank you
Dont think thats how it works
let me check
what works?
true
and it did not work 'on jump'
what dose it need to be
the event doesnt work?
ye
or that it doesnt work against a hack
Idk how the hack works but it probably doesnt send a packet to the server telling it that it just did a hack
Which is why you use a real anticheat which is made to detect it
i am
Because they spend time figuring out how the hacks work
So they can properly detect them
And what makes you think you are better
bc i had to turn it down
When you cant even read skript syntax
npc is the anti cheat dumb ass
@olive garnet
it should work?
on jump:
if block under the player is air:
push the player down with speed 10
@olive garnet