Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. ---------------------------------
  2. --Players Loadout
  3. ---------------------------------
  4. function GM:PlayerLoadout( ply )
  5.  
  6. if ply:Team() == TEAM_SPECTATE then return end
  7.  
  8. if ply:Team() == TEAM_BLUE || ply:Team() == TEAM_RED then
  9. if GetConVarNumber("psw_weaponSabre")>=1 then
  10. ply:Give("weapon_psw_sabre")
  11. end
  12.  
  13. if GetConVarNumber("psw_weaponGrenade")>=1 then
  14. ply:Give("weapon_psw_grenade")
  15. end
  16.  
  17. if GetConVarNumber("psw_weaponmusket")>=1 then
  18. ply:Give("weapon_psw_musket")
  19. end
  20.  
  21. if ( ply:IsAdmin() or ply:IsSuperAdmin() ) then
  22. ply:Give("weapon_physgun")
  23. ply:Give("weapon_smg1")
  24. ply:GiveAmmo(100,"smg1")
  25. end
  26.  
  27. if ply:IsUserGroup( "moderator" ) then
  28. ply:Give("weapon_physgun")
  29. ply:Give("weapon_smg1")
  30. ply:GiveAmmo(100,"smg1")
  31. end
  32.  
  33. if ply:IsUserGroup( "sponsor" ) then
  34. ply:Give("weapon_rpg")
  35. ply:Give("weapon_crossbow")
  36. ply:Give("weapon_smg1")
  37. ply:GiveAmmo(5,"rpg")
  38. ply:GiveAmmo(10,"crossbow")
  39. ply:GiveAmmo(100,"smg1")
  40. end
  41.  
  42. if ply:IsUserGroup( "donator" ) then
  43. ply:Give("weapon_smg1")
  44. ply:GiveAmmo(100,"smg1")
  45. end
  46.  
  47. ply:GiveAmmo(21,"pistol");
  48. end
  49.  
  50. if ply:Team() == TEAM_RED then
  51. if GetConVarNumber("psw_weaponPistol")>=1 then
  52. ply:Give("weapon_psw_pistol2")
  53. end
  54. end
  55.  
  56. if ply:Team() == TEAM_BLUE then
  57. if GetConVarNumber("psw_weaponPistol")>=1 then
  58. ply:Give("weapon_psw_pistol2") // weapon_psw_pistol2
  59. end
  60. end
  61.  
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement