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