Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function giveKit(p: Player, c: Text) :: boolean:
- "%{fw::classes::list::*}%" contains "%{_c}%":
- clear {_p}'s inventory
- loop {fw::classes::%{_c}%::kit::*}:
- loop-value is boots, leggings, chestplate or helmet:
- equip {_p} with loop-value
- else:
- add loop-value to {_p}
- return true
- stop
- return false
- function setClass(p: Player, animal: Text):
- giveKit({_p}, {_animal}) = true:
- disguise {_P} as "%{_animal}%"
- sendMessage({_p}, "{@Logo}You've become a &a%{_animal}%", true)
- stop
- sendMessage({_p}, "{@Logo}Error. That kit doesn't exist!%nl%{@Logo}&cPlease contact an Admin!", true)
- stop
Advertisement
Add Comment
Please, Sign In to add comment