Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name zz1
- if (first()) {
- # Create the hologram
- holoCreate(1)
- holoScale(1,vec(-80,80,80)/4)
- holoMaterial(1,"debug/debugdrawflat")
- holoModel(1, "hq_sphere")
- # We want the e2 to run when you say something
- runOnChat(1)
- }
- A = owner():lastSaid():explode(" ")
- if(A[1,string]==(".red")){
- hideChat(1)
- holoColor(1, vec(255,0,0))
- }
- if(A[1,string]==(".green")){
- hideChat(1)
- holoColor(1, vec(0,255,0))
- }
- if(A[1,string]==(".blue")){
- hideChat(1)
- holoColor(1, vec(0,0,255))
- }
- if (chatClk(owner())) {
- M = lastSaid():explode(" ") #Split what you said into an array
- if (M[1,string] == ".blind1") { #If you said ".blind"
- hideChat(1) #Hide your message
- if (M[2,string]) {
- Ply = findPlayerByName(M[2,string]) #find the player..
- if (Ply) {
- #Blind the player:
- holoPos(1,Ply:pos()+vec(0,0,50))
- holoParent(1,Ply)
- holoAlpha(1,255)
- print("Blinded " + Ply:name())
- } else {print("Player '" + M[2,string] + "' not found.")}
- } else {print("You must enter a name.")}
- } elseif (M[1,string] == ".unblind") { #If you said ".unblind"
- hideChat(1)
- holoAlpha(1,0) #Make the hologram invisible so that they can see again
- print("Unblinded.")
- }
- if (A[1,string] == ".rainbow") {
- hideChat(1)
- holoColor(1, vec(random(255),random(255),random(255)))
- }
- }
- runOnTick(1)
- holoColor(1, hsv2rgb(vec(90*curtime()%360,1,1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement