Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. @name zz1
  2.  
  3. if (first()) {
  4. # Create the hologram
  5. holoCreate(1)
  6. holoScale(1,vec(-80,80,80)/4)
  7. holoMaterial(1,"debug/debugdrawflat")
  8. holoModel(1, "hq_sphere")
  9. # We want the e2 to run when you say something
  10. runOnChat(1)
  11. }
  12. A = owner():lastSaid():explode(" ")
  13.  
  14. if(A[1,string]==(".red")){
  15. hideChat(1)
  16. holoColor(1, vec(255,0,0))
  17. }
  18.  
  19. if(A[1,string]==(".green")){
  20. hideChat(1)
  21. holoColor(1, vec(0,255,0))
  22. }
  23.  
  24. if(A[1,string]==(".blue")){
  25. hideChat(1)
  26. holoColor(1, vec(0,0,255))
  27. }
  28.  
  29. if (chatClk(owner())) {
  30. M = lastSaid():explode(" ") #Split what you said into an array
  31. if (M[1,string] == ".blind1") { #If you said ".blind"
  32. hideChat(1) #Hide your message
  33. if (M[2,string]) {
  34. Ply = findPlayerByName(M[2,string]) #find the player..
  35. if (Ply) {
  36. #Blind the player:
  37. holoPos(1,Ply:pos()+vec(0,0,50))
  38. holoParent(1,Ply)
  39. holoAlpha(1,255)
  40. print("Blinded " + Ply:name())
  41. } else {print("Player '" + M[2,string] + "' not found.")}
  42. } else {print("You must enter a name.")}
  43. } elseif (M[1,string] == ".unblind") { #If you said ".unblind"
  44. hideChat(1)
  45. holoAlpha(1,0) #Make the hologram invisible so that they can see again
  46. print("Unblinded.")
  47. }
  48.  
  49. if (A[1,string] == ".rainbow") {
  50. hideChat(1)
  51. holoColor(1, vec(random(255),random(255),random(255)))
  52. }
  53. }
  54.  
  55. runOnTick(1)
  56. holoColor(1, hsv2rgb(vec(90*curtime()%360,1,1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement