Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. @name Cloak
  2. @inputs
  3. @outputs Time
  4. @persist D:string F:string
  5. @trigger
  6. runOnTick(1)
  7. runOnChat(1)
  8.  
  9.  
  10. if(owner():lastSaid()=="/cloak") {
  11. hideChat(1)
  12. D = "models/shadertest/predator"
  13. }
  14.  
  15. elseif (owner():lastSaid()=="/uncloak") {
  16. hideChat(1)
  17. D = ""
  18. }
  19. F = D
  20.  
  21. if(first()) {
  22. hint("Type '/cloak' to cloak yourself",7)
  23. hint("Type '/uncloak' to uncloak yourself",7)}
  24.  
  25.  
  26. if(changed(F)) {owner():setMaterial(F)}
  27. if(changed(F)&F!="") {print(4,"You are now cloaked")}
  28. if(changed(F)&F=="") {print(4,"You are now uncloaked")}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement