Advertisement
Guest User

Untitled

a guest
Jun 5th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1.  
  2. AddCSLuaFile( "shared.lua" )
  3. AddCSLuaFile( "cl_init.lua" )
  4.  
  5. include( 'shared.lua' )
  6.  
  7. local function BlockSuicide(ply)
  8. ply:ChatPrint("You Are Not Allowed To Use The Console Command 'Kill' It Causes The Player To No Longer Have A Weapon At Spawn.")
  9. return false
  10. end
  11. hook.Add( "CanPlayerSuicide", "BlockSuicide", BlockSuicide )
  12.  
  13. function GM:PlayerSetModel( ply )
  14. ply:SetModel( "models/player/leet.mdl" )
  15. end
  16.  
  17. function GM:PlayerDeath(attacker)
  18.  
  19. local WepList =
  20. {
  21. 'tfa_luger',
  22. 'tfa_deagle',
  23. 'weapon_three',
  24. 'tfa_ragingbull',
  25. 'tfa_glock',
  26. 'tfa_colt1911',
  27. 'tfa_hk45',
  28. 'tfa_sig_p229r',
  29. 'tfa_mp5',
  30. 'tfa_bizonp19',
  31. 'tfa_kac_pdw',
  32. 'tfa_magpulpdr',
  33. 'tfa_mp5sd',
  34. 'tfa_honeybadger',
  35. 'tfa_mp9',
  36. 'tfa_bf4_ak5c',
  37. 'tfa_bf4_asval',
  38. 'tfa_bf4_aek971',
  39. 'tfa_bf4_ak12',
  40. 'tfa_vector',
  41. 'tfa_bf4_338',
  42. 'tfa_mp7',
  43. 'm9k_dragunov',
  44. 'm9k_intervention',
  45. 'm9k_m24',
  46. 'm9k_barret_m82',
  47. 'm9k_aw50',
  48. 'm9k_sl8',
  49. 'm9k_svt40',
  50. 'm9k_svu',
  51. 'm9k_spas12',
  52. 'm9k_usas',
  53. 'm9k_remington870',
  54. 'm9k_remington7615p',
  55. 'm9k_m249lmg',
  56. 'm9k_pkm',
  57. 'm9k_dbarrel',
  58. 'm9k_1887winchester',
  59. 'm9k_1897winchester',
  60. 'm9k_ares_shrike'
  61. }
  62.  
  63.  
  64. if (level == #WepList) then
  65. for k, v in pairs( player.GetAll() ) do
  66.  
  67. v:StripWeapons()
  68. v:SetNWFloat('level', 1)
  69. v:Spawn()
  70. return
  71. end
  72. end
  73. attacker:StripWeapon(WepList[level])
  74. attacker:Give(WepList[level+1])
  75. attacker:GiveAmmo(weapons.Get(WepList[level+1]).Primary.Ammo)
  76. attacker:SetNWFloat('level', attacker:GetNWFloat('level') +1)
  77. end
  78.  
  79.  
  80. function GM:PlayerLoadout(pl)
  81. if ( pl:GetNWFloat('level',1 ) ) then
  82. pl:Give("tfa_luger")
  83. pl:GiveAmmo(969, "pistol")
  84. end
  85. end
  86.  
  87. function GM:PlayerSpawn( ply )
  88. self.BaseClass:PlayerSpawn( ply )
  89. ply:SetGravity( 1, 900 )
  90. ply:SetMaxHealth( 100, true )
  91. ply:SetWalkSpeed( 165 )
  92. ply:SetRunSpeed( 355 )
  93. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement