Advertisement
HDBSD

E2 holoshield

Apr 1st, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. @name Holo Shield
  2. @persist Shield:string Prop:entity
  3.  
  4. if(first())
  5. {
  6. Shield = "disabled"
  7. holoCreate(1)
  8. holoCreate(2)
  9. holoColor(1,vec(255,0,0))
  10. holoColor(2,vec(255,0,0))
  11. holoAlpha(1,100)
  12. holoAlpha(2,100)
  13. holoShadow(1,0)
  14. holoShadow(2,0)
  15. holoModel(1,"hq_sphere")
  16. holoModel(2,"hq_sphere")
  17. holoScale(1,vec(0,0,0))
  18. holoScale(2,vec(0,0,0))
  19. runOnTick(1)
  20. runOnChat(1)
  21. }
  22.  
  23.  
  24. if(Shield == "enabled")
  25. {
  26. #incomplete code
  27. }
  28.  
  29.  
  30.  
  31. if(chatClk(owner()))
  32. {
  33. Message = owner():lastSaid():explode(" ")
  34.  
  35. if(Message[1,string] == "!enable")
  36. {
  37. hideChat(1)
  38. Shield = "enabled"
  39. holoScale(1,vec(-100,-100,-100))
  40. holoScale(2,vec(100,100,100))
  41. hint("Shield Enabled",3)
  42. }
  43. elseif(Message[1,string] == "!disable")
  44. {
  45. hideChat(1)
  46. Shield = "disabled"
  47. holoScale(1,vec(0,0,0))
  48. holoScale(2,vec(0,0,0))
  49. hint("Shield disabled",3)
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement