Advertisement
Guest User

Dallas

a guest
Feb 21st, 2015
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. if {SERVER} then
  2. player_manager.AddValidModel( "Dallas", "models/player/pd2_dallas_p.mdl")
  3. AddCSLuaFile( "pd2_dallas.lua")
  4. end
  5. list.set ( "PlayerOptionsModel", "Dallas", "models/player/pd2_dallas_p.mdl")
  6.  
  7. --// File generated by F0x's Resources Generator 3.0.0 \\--
  8.  
  9. if ( SERVER ) then
  10. resource.AddFile( "materials/models/shaklin/payday2/dallas/eyeball_l.vmt" )
  11. resource.AddFile( "materials/models/shaklin/payday2/dallas/eyeball_l.vtf" )
  12. resource.AddFile( "materials/models/shaklin/payday2/dallas/eyeball_r.vmt" )
  13. resource.AddFile( "materials/models/shaklin/payday2/dallas/eyeball_r.vtf" )
  14. resource.AddFile( "materials/models/shaklin/payday2/dallas/head_dallas.vmt" )
  15. resource.AddFile( "materials/models/shaklin/payday2/dallas/head_dallas.vtf" )
  16. resource.AddFile( "materials/models/shaklin/payday2/dallas/head_dallas_n.vtf" )
  17. resource.AddFile( "materials/models/shaklin/payday2/dallas/mask_dallas.vmt" )
  18. resource.AddFile( "materials/models/shaklin/payday2/dallas/mask_dallas.vtf" )
  19. resource.AddFile( "materials/models/shaklin/payday2/dallas/mask_dallas_n.vtf" )
  20. resource.AddFile( "materials/models/shaklin/payday2/dallas/mask_dallas_s.vtf" )
  21. resource.AddFile( "materials/models/shaklin/payday2/dallas/suit_dallas.vmt" )
  22. resource.AddFile( "materials/models/shaklin/payday2/dallas/suit_dallas.vtf" )
  23. resource.AddFile( "materials/models/shaklin/payday2/eyeball_l_ambient.vtf" )
  24. resource.AddFile( "materials/models/shaklin/payday2/eyeball_r_ambient.vtf" )
  25. resource.AddFile( "materials/models/shaklin/payday2/gloves.vmt" )
  26. resource.AddFile( "materials/models/shaklin/payday2/gloves.vtf" )
  27. resource.AddFile( "materials/models/shaklin/payday2/gloves_n.vtf" )
  28. resource.AddFile( "materials/models/shaklin/payday2/straps.vmt" )
  29. resource.AddFile( "materials/models/shaklin/payday2/straps.vtf" )
  30. resource.AddFile( "materials/models/shaklin/payday2/straps_n.vtf" )
  31. resource.AddFile( "materials/models/shaklin/payday2/suit_xn.vtf" )
  32. resource.AddFile( "models/player/pd2_dallas_p.mdl" )
  33. resource.AddFile( "models/player/pd2_dallas_p.dx80.vtx" )
  34. resource.AddFile( "models/player/pd2_dallas_p.dx90.vtx" )
  35. resource.AddFile( "models/player/pd2_dallas_p.phy" )
  36. resource.AddFile( "models/player/pd2_dallas_p.sw.vtx" )
  37. resource.AddFile( "models/player/pd2_dallas_p.vvd" )
  38. resource.AddFile( "models/shaklin/payday2/pd2_dallas.mdl" )
  39. resource.AddFile( "models/shaklin/payday2/weapons/arms/c_arms_dallas.mdl" )
  40. end
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. Pointshop:
  48.  
  49. ITEM.Name = 'Dallas'
  50. ITEM.Price = 1000
  51. ITEM.Model = 'models/player/pd2_dallas_p.mdl'
  52.  
  53. function ITEM:OnEquip(ply, modifications)
  54. if not ply._OldModel then
  55. ply._OldModel = ply:GetModel()
  56. end
  57.  
  58. timer.Simple(1, function() ply:SetModel(self.Model) end)
  59. end
  60.  
  61. function ITEM:OnHolster(ply)
  62. if ply._OldModel then
  63. ply:SetModel(ply._OldModel)
  64. end
  65. end
  66.  
  67. function ITEM:PlayerSetModel(ply)
  68. ply:SetModel(self.Model)
  69. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement