Advertisement
Guest User

init.lua

a guest
Jan 26th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. function ENT:Initialize()
  2.  
  3. self:SetModel( "models/props_wasteland/controlroom_storagecloset001a.mdl" )
  4. self:PhysicsInit( SOLID_VPHYSICS )
  5. self:SetMoveType( MOVETYPE_VPHYSICS )
  6. self:SetSolid( SOLID_VPHYSICS )
  7. self:SetTrigger()
  8. self.Delay = CurTime()
  9.  
  10. local phys = self:GetPhysicsObject()
  11. if (phys:IsValid()) then
  12. phys:Wake()
  13. end
  14. end
  15.  
  16. function ENT:Use(a , c)
  17. if a:Team() == "DKLASSE" or a:Team() == "DKLASSEFETTSACK" then
  18. a:SetModel("models/Humans/Group01/Male_05.mdl")
  19. a:ChatPrint("Du hast dich nun als Zivilist verkleidet")
  20.  
  21. end
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement