Leaving the player

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

    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.

Ceravia

Member
Apr 17, 2017
18
0
0
any way to stop a player from dismounting while on another player? ive looked everywhere. Thanks in advance!
 
code_language.skript:
   on sneak toggle:   
    if player is riding a player:       
        cancel event

Untested, not sure if it will work
 
[doublepost=1499456820,1499456781][/doublepost]
code_language.skript:
   on sneak toggle:
    if player is riding a player:   
        cancel event

Untested, not sure if it will work
that wont work
[doublepost=1499456851][/doublepost]This should work:
code_language.skript:
set metadata value "freezeStand" of player to true
set this to the player or mob that is under

And this to cancel the event
code_language.skript:
on packet:
    if event-string is "PacketPlayInSteerVehicle" where [metadata value "freezeStand" of player's vehicle is true]:
        cancel the event

I think it needs Skellet

Credits to Pikachu

if that fixed your problem please mark as solved.
 
Last edited by a moderator:
[doublepost=1499456820,1499456781][/doublepost]
that wont work
[doublepost=1499456851][/doublepost]This should work:
code_language.skript:
set metadata value "freezeStand" of player to true
set this to the player or mob that is under

And this to cancel the event
code_language.skript:
on packet:
    if event-string is "PacketPlayInSteerVehicle" where [metadata value "freezeStand" of player's vehicle is true]:
        cancel the event

I think it needs Skellet

if that fixed your problem please mark as solved.
If you're gonna post my code at least credit me
 
[doublepost=1499456820,1499456781][/doublepost]
that wont work
[doublepost=1499456851][/doublepost]This should work:
code_language.skript:
set metadata value "freezeStand" of player to true
set this to the player or mob that is under

And this to cancel the event
code_language.skript:
on packet:
    if event-string is "PacketPlayInSteerVehicle" where [metadata value "freezeStand" of player's vehicle is true]:
        cancel the event

I think it needs Skellet

if that fixed your problem please mark as solved.

If you're gonna post my code at least credit me

not sure who actually made this, but it doesn't appear to work :/

http://prntscr.com/fszcli
 
not sure who actually made this, but it doesn't appear to work :/

http://prntscr.com/fszcli
I made it, you can see the exact code in my login skript. you don't have metadata on in the skellett config, which is where metadata comes from

EDIT: it also needs some editing for it to work like you want
 
I made it, you can see the exact code in my login skript. you don't have metadata on in the skellett config, which is where metadata comes from

EDIT: it also needs some editing for it to work like you want
I didnt know it was yours i knew jassper has it maybe was from him and i know i dont have troubles with him same way im sorry and thanks
 
I made it, you can see the exact code in my login skript. you don't have metadata on in the skellett config, which is where metadata comes from

EDIT: it also needs some editing for it to work like you want

I've modified it into my code, but I can't find metadata anywhere in my skillet config. Perhaps its because I'm on 1.8 rather than 1.9+?

EDIT: wording
 
Status
Not open for further replies.