Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on inventory click:
- if player's current inventory's name is "Polizei":
- cancel event
- if name of clicked item is "Gefängniswärter":
- teleport the player to {warp.Gefangnis}
- set {_count} to 0
- loop 36 times:
- set {inv.%{_p}%.%{_count}%.main.%{_w}%} to slot {_count} of {_p}'s inventory
- add 1 to {_count}
- clear player's inventory
- on inventory click:
- if player's current inventory's name is "Polizei":
- cancel event
- if name of clicked item is "&cSchicht beenden":
- wait 1 tick
- set {_count} to 0
- loop 36 times:
- set slot {_count} of {_p}'s inventory to {inv.%{_p}%.%{_count}%.main.%{_w}%}
- add 1 to {_count}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement