Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. AddCSLuaFile( "cl_init.lua" )
  2. AddCSLuaFile( "shared.lua" )
  3.  
  4. include('shared.lua')
  5.  
  6. function ENT:Initialize()
  7.  
  8. self:SetModel( "models/props/cs_office/computer_monitor.mdl" )
  9. self:PhysicsInit( SOLID_VPHYSICS )
  10. self:SetMoveType( MOVETYPE_VPHYSICS )
  11. self:SetSolid( SOLID_VPHYSICS )
  12.  
  13. local phys = self:GetPhysicsObject()
  14. if (phys:IsValid()) then
  15. phys:Wake()
  16. end
  17. end
  18.  
  19. function ENT:Use( activator, caller )
  20.  
  21. function() LocalPlayer():ConCommand("say !servers") end
  22.  
  23. end
  24.  
  25. function ENT:Think()
  26.  
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement