Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Cloak
- @inputs
- @outputs Time
- @persist D:string F:string
- @trigger
- runOnTick(1)
- runOnChat(1)
- if(owner():lastSaid()=="/cloak") {
- hideChat(1)
- D = "models/shadertest/predator"
- }
- elseif (owner():lastSaid()=="/uncloak") {
- hideChat(1)
- D = ""
- }
- F = D
- if(first()) {
- hint("Type '/cloak' to cloak yourself",7)
- hint("Type '/uncloak' to uncloak yourself",7)}
- if(changed(F)) {owner():setMaterial(F)}
- if(changed(F)&F!="") {print(4,"You are now cloaked")}
- if(changed(F)&F=="") {print(4,"You are now uncloaked")}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement