Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. @name Colour Changer
  2. @persist [Cloak]:number [O]:entity
  3.  
  4. runOnTick(1)
  5.  
  6. if(first()){
  7. O = owner()
  8. runOnChat(1)
  9. hint("by Nickishero",100)
  10. Debug = 0
  11. }
  12.  
  13.  
  14. if (chatClk(O)) {
  15. LS = O:lastSaid():lower()
  16. if (LS == "!clok") {
  17. hideChat(1)
  18. Cloak = !Cloak
  19. printColor(vec(255,255,0),Cloak ? "Cloak engaged" : "Cloak disabled")
  20. O:setAlpha(Cloak ? 0 : 255)
  21. O:setMaterial(Cloak ? "Models/effects/vol_light001" : "")
  22. O:weapon():setAlpha(Cloak ? 0 : 255)
  23. }
  24. }
  25.  
  26. if(owner():lastSaid() == "!rainbow"){
  27. entity():owner():setMaterial("models/shiny")
  28. owner():setColor(vec(random(255),random(255),random(255)))
  29. }
  30.  
  31. if(owner():lastSaid() == "!gold"){
  32. entity():owner():setMaterial("models/shiny")
  33. entity():owner():setColor(110,85,0)
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement