Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Colour Changer
- @persist [Cloak]:number [O]:entity
- runOnTick(1)
- if(first()){
- O = owner()
- runOnChat(1)
- hint("by Nickishero",100)
- Debug = 0
- }
- if (chatClk(O)) {
- LS = O:lastSaid():lower()
- if (LS == "!clok") {
- hideChat(1)
- Cloak = !Cloak
- printColor(vec(255,255,0),Cloak ? "Cloak engaged" : "Cloak disabled")
- O:setAlpha(Cloak ? 0 : 255)
- O:setMaterial(Cloak ? "Models/effects/vol_light001" : "")
- O:weapon():setAlpha(Cloak ? 0 : 255)
- }
- }
- if(owner():lastSaid() == "!rainbow"){
- entity():owner():setMaterial("models/shiny")
- owner():setColor(vec(random(255),random(255),random(255)))
- }
- if(owner():lastSaid() == "!gold"){
- entity():owner():setMaterial("models/shiny")
- entity():owner():setColor(110,85,0)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement