Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. on inventory click:
  2. if player's current inventory's name is "Polizei":
  3. cancel event
  4. if name of clicked item is "Gefängniswärter":
  5. teleport the player to {warp.Gefangnis}
  6. set {_count} to 0
  7. loop 36 times:
  8. set {inv.%{_p}%.%{_count}%.main.%{_w}%} to slot {_count} of {_p}'s inventory
  9. add 1 to {_count}
  10. clear player's inventory
  11. on inventory click:
  12. if player's current inventory's name is "Polizei":
  13. cancel event
  14. if name of clicked item is "&cSchicht beenden":
  15. wait 1 tick
  16. set {_count} to 0
  17. loop 36 times:
  18. set slot {_count} of {_p}'s inventory to {inv.%{_p}%.%{_count}%.main.%{_w}%}
  19. add 1 to {_count}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement