CapsAdmin

Untitled

Jan 20th, 2012
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. easylua.StartEntity("useless")
  2.  
  3. if CLIENT then
  4.  
  5.     function ENT:Draw()
  6.     render.SetColorModulation(1,0,math.sin(CurTime()))
  7.     self:DrawModel()
  8.     end
  9.    
  10. end
  11.  
  12. if SERVER then
  13.  
  14.     function ENT:Initialize()
  15.     self:SetModel("models/props/CS_militia/microwave01.mdl")
  16.     self:PhysicsInit(SOLID_VPHYSICS)
  17.     end
  18.    
  19.    
  20.     function ENT:Use(ply)
  21.     ply:Kill()
  22.     end
  23.    
  24.     function ENT:OnTakeDamage(dmginfo)
  25.     local ply = dmginfo:GetAttacker()
  26.    
  27.     if ply:IsPlayer() then
  28.         ply:Kill()
  29.     end
  30.     end
  31.    
  32. end
  33.  
  34. easylua.EndEntity(true, true)
Advertisement
Add Comment
Please, Sign In to add comment