on rightclick:
if name of player's tool is "&c&lX &6Erdész Puska &c&lX":
if player has a 351:1 named "&cLőszer":
loop 20 times:
shoot an arrow at speed 9
play "ITEM_SHIELD_BREAK" to player at volume 50
remove 1 351:1 named "&cLőszer" from the player
wait a tick
set action bar of player to "&a&lÚjratöltés... [8 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [7 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [6 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [5 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [4 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [3 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [2 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [1 MP]..."
wait 1 second
set action bar of player to "&a&lErdész Puska újratöltve."
give 1 351:1 named "&cLőszer" to player
I need help with this, everything is working fine, but i want that a player dies the reload be cancelled, so I mean if die while reloading, reload stops...Please help and I also want it for Teleports so if a player teleports to lobby/hub/spawn the reload be cancelled.. (Sorry for my English) But please help, I'am beginner.
if name of player's tool is "&c&lX &6Erdész Puska &c&lX":
if player has a 351:1 named "&cLőszer":
loop 20 times:
shoot an arrow at speed 9
play "ITEM_SHIELD_BREAK" to player at volume 50
remove 1 351:1 named "&cLőszer" from the player
wait a tick
set action bar of player to "&a&lÚjratöltés... [8 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [7 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [6 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [5 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [4 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [3 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [2 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [1 MP]..."
wait 1 second
set action bar of player to "&a&lErdész Puska újratöltve."
give 1 351:1 named "&cLőszer" to player
I need help with this, everything is working fine, but i want that a player dies the reload be cancelled, so I mean if die while reloading, reload stops...Please help and I also want it for Teleports so if a player teleports to lobby/hub/spawn the reload be cancelled.. (Sorry for my English) But please help, I'am beginner.