does api work on skript? pls help

Discussion in 'Skript' started by xFrozenz_736, May 24, 2018.

  1. ues this code cancel fall damage
     
  2. why god why

    Code (Text):
    on step on 166: # use whatever you want just replace the block id of block you placet  under the map
        if {Player.tpback.%player%} is set:
            heal player
            teleport player to block above {Player.tpback.%player%}
    on "ga.strikepractice.events.DuelStartEvent":
        wait 2 tick
        if "%event.getKit().getName()%" is "your-kit-name":
            set {Player.kitname.%event.getPlayer2()%} to "%event.getKit().getName()%"
            set {Player.kitname.%event.getPlayer1()%} to "%event.getKit().getName()%"
            set {Player.tpback.%event.getPlayer2()%} to location of event.getPlayer2()
            set {Player.tpback.%event.getPlayer1()%} to location of event.getPlayer1()
    on "ga.strikepractice.events.DuelEndEvent":
        wait 2 tick
        clear {Player.kitname.%event.getWinner()%}
        clear {Player.tpback.%event.getWinner()%}
        clear {Player.kitname.%event.getLoser()%}
        clear {Player.tpback.%event.getLoser()%}
    on damage of player:
        if {Player.kitname.%victim%} is set:
            if damage cause is fall:
                cancel event
     
    #42 ammar, May 30, 2018
    Last edited: May 30, 2018
  3. pls help me i still got damage from fall
     
  4. upload_2018-5-30_20-41-22.png

    on that cancel fall damage i still got the damage T-T
     
  5. try this code


    Code (Text):
    on step on 166: # use whatever you want just replace the block id of block you placet  under the map
        if {Player.tpback.%player%} is set:
            heal player
            teleport player to block above {Player.tpback.%player%}
    on "ga.strikepractice.events.DuelStartEvent":
        wait 2 tick
        if "%event.getKit().getName()%" is "your-kit-name":
            set {Player.kitname.%event.getPlayer2()%} to "%event.getKit().getName()%"
            set {Player.kitname.%event.getPlayer1()%} to "%event.getKit().getName()%"
            set {Player.tpback.%event.getPlayer2()%} to location of event.getPlayer2()
            set {Player.tpback.%event.getPlayer1()%} to location of event.getPlayer1()
    on "ga.strikepractice.events.DuelEndEvent":
        wait 2 tick
        clear {Player.kitname.%event.getWinner()%}
        clear {Player.tpback.%event.getWinner()%}
        clear {Player.kitname.%event.getLoser()%}
        clear {Player.tpback.%event.getLoser()%}
    on damage of player:
        if {Player.kitname.%victim%} is set:
            if damage cause is fall:
                cancel event
     
  6. sti
    still got damage
     
  7. i think they all same code"??
     
  8. do you get error?
    when you reload
     
  9. e
    no errors daddy
     
  10. and still got damage
     
  11. lul this guy can't learn Java since he is bad
     
  12. Comon
    Whats the difficult of coding Java plugins
    The learning method will not success
    Just get codes from others but not even coding yourself
    Learn before you ask
     
  13. ok xD im learning it
     

  14. The english lang to learn is hard for me since im bad at english llool but i will keep trying