Guest
Public paste!

Untitled

By: a guest | Mar 19th, 2010 | Syntax: Lua | Size: 0.46 KB | Hits: 57 | Expires: Never
Copy text to clipboard
  1. function GM:PlayerLoadout(ply) --"The weapons/items that the player spawns with" function
  2.  
  3.         ply:StripWeapons() -- This command strips all weapons from the player.
  4.  
  5.         if ply:Team() == 1 then --If the player is on team "Team RED"...
  6.                 ply:Give("weapon_crowbar") -- ...then give them the Crow Bar.
  7.  
  8.         elseif ply:Team() == 2 then -- Otherwise, if the player is on team "Team BLUE"...
  9.                 ply:Give("weapon_stunstick") -- ...then give them the Stun Stick.
  10.  
  11.         end
  12.  
  13. end