Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // put this code in player initilization function
- int speed = 5
- ply:SetNWInt("phyR", 0)
- ply:SetNWInt("phyG", 85)
- ply:SetNWInt("phyB", 170)
- // put this code in a hook that gets called every tick like draw or hudpaint
- local r = ply:GetNWInt("phyR")
- local g = ply:GetNWInt("phyG")
- local b = ply:GetNWInt("phyB")
- ply:SetNWInt("phyR", r + 1)
- ply:SetNWInt("phyG", g + 1)
- ply:SetNWInt("phyB", b + 1)
- if(r >= 255 ply:SetNWInt("phyR", 0))
- if(g >= 255 ply:SetNWInt("phyG", 0))
- if(b >= 255 ply:SetNWInt("phyB", 0))
- ply:SetWeaponColor( Vector( r / 255, g / 255, b / 255 ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement