Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Holo Shield
- @persist Shield:string Prop:entity
- if(first())
- {
- Shield = "disabled"
- holoCreate(1)
- holoCreate(2)
- holoColor(1,vec(255,0,0))
- holoColor(2,vec(255,0,0))
- holoAlpha(1,100)
- holoAlpha(2,100)
- holoShadow(1,0)
- holoShadow(2,0)
- holoModel(1,"hq_sphere")
- holoModel(2,"hq_sphere")
- holoScale(1,vec(0,0,0))
- holoScale(2,vec(0,0,0))
- runOnTick(1)
- runOnChat(1)
- }
- if(Shield == "enabled")
- {
- #incomplete code
- }
- if(chatClk(owner()))
- {
- Message = owner():lastSaid():explode(" ")
- if(Message[1,string] == "!enable")
- {
- hideChat(1)
- Shield = "enabled"
- holoScale(1,vec(-100,-100,-100))
- holoScale(2,vec(100,100,100))
- hint("Shield Enabled",3)
- }
- elseif(Message[1,string] == "!disable")
- {
- hideChat(1)
- Shield = "disabled"
- holoScale(1,vec(0,0,0))
- holoScale(2,vec(0,0,0))
- hint("Shield disabled",3)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement