Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. AddCSLuaFile( "cl_init.lua" )
  2. AddCSLuaFile( "shared.lua" )
  3.  
  4. include( 'shared.lua' )
  5.  
  6. function GM:PlayerInitialSpawn( ply )
  7.  
  8. ply:GiveAmmo( 200, "ninemmgerman", true)
  9. ply:GiveAmmo( 200, "ninemmrussian", true)
  10. ply:GiveAmmo( 200, "ninemmshort", true)
  11. ply:GiveAmmo( 200, "tenmmauto", true)
  12. ply:GiveAmmo( 200, "fourtymmgrenade", true)
  13. ply:GiveAmmo( 200, "fourtyfiveacp", true)
  14. ply:GiveAmmo( 200, "fiftyae", true)
  15. ply:GiveAmmo( 200, "fiftybmg", true)
  16. ply:GiveAmmo( 200, "fivefivesix", true)
  17. ply:GiveAmmo( 200, "sevensixtwobyfiftyone", true)
  18. ply:GiveAmmo( 200, "sevensixtwoshort", true)
  19. ply:GiveAmmo( 200, "shotgunshell", true)
  20.  
  21. ply:Give( "weapon_fas_dv2" )
  22. ply:SetModel( "models/player/Group01/male_02.mdl" )
  23.  
  24. ply.kills == 0
  25.  
  26. end
  27.  
  28. function GM:PlayerSpawn( ply )
  29.  
  30. ply:GiveAmmo( 200, "ninemmgerman", true)
  31. ply:GiveAmmo( 200, "ninemmrussian", true)
  32. ply:GiveAmmo( 200, "ninemmshort", true)
  33. ply:GiveAmmo( 200, "tenmmauto", true)
  34. ply:GiveAmmo( 200, "fourtymmgrenade", true)
  35. ply:GiveAmmo( 200, "fourtyfiveacp", true)
  36. ply:GiveAmmo( 200, "fiftyae", true)
  37. ply:GiveAmmo( 200, "fiftybmg", true)
  38. ply:GiveAmmo( 200, "fivefivesix", true)
  39. ply:GiveAmmo( 200, "sevensixtwobyfiftyone", true)
  40. ply:GiveAmmo( 200, "sevensixtwoshort", true)
  41. ply:GiveAmmo( 200, "shotgunshell", true)
  42.  
  43. ply:SetModel( "models/player/Group01/male_02.mdl" )
  44.  
  45. if (ply.kills = 0) then
  46. ply:Give( "weapon_fas_glock20")
  47. else if (ply.kills = 1) then
  48. ply:Give( "weapon_fas_m9" )
  49. else if (ply.kills = 2) then
  50. ply:Give( "weapon_fas_m4a1" )
  51. else if (ply.kills => 3) then
  52. ply:Give( "weapon_fas_g36c" )
  53. end
  54. end
  55. end
  56. end
  57.  
  58. function GM:PlayerDeath( victim, inflictor, attacker )
  59. if (victim != attacker and attacker:IsPlayer() and victim:IsPlayer() ) then
  60. attacker.kills = attacker.kils + 1
  61. end
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement