Help with Weapons Locker

So a simple solution I’m trying to do with DMing as police is introduce weapons lockers. Here is the code, I can’t get the player to be given the weapons…



AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")

include('shared.lua')

function ENT:Initialize()

	self:SetModel("models/props_c17/Lockers001a.mdl")
	self:PhysicsInit(SOLID_VPHYSICS)
	self:SetMoveType(MOVETYPE_VPHYSICS)
	self:SetSolid(SOLID_VPHYSICS)
	
	local phys = self:GetPhysicsObject()
	if(phys:IsValid()) then
		phys:Wake()
	end

end

function ENT:Use(using,calling)

	using:ChatPrint(tostring(using:Team()))

	if using:Team() == 2 then
		ply:Give("weapon_fas_glock20")
		ply:GiveAmmo(45,"SniperPenetratedRound")
	end
	if using:Team() == 11 then
		ply:Give("weapon_fas_m9s")
		ply:GiveAmmo(45,"Battery")
	end
	if(team.GetName(using:Team()) == "Civil Protection Chief") then
		ply:Give("weapon_fas_glock20")
		ply:GiveAmmo(45,"SniperPenetratedRound")
	end

end

function spawnWeaponsLock(ply)

	if(ply:IsAdmin()) then
		local newLocker=ents.Create("police_locker_weapon")
		newLocker:SetPos(ply:GetPos())
		newLocker:Spawn()
	end

end

concommand.Add("add_locker_weapons",spawnWeaponsLock)


[editline]25th October 2011[/editline]

I apologize for being a dumbass, I have realized my mistake and corrected this. :<

You should post you’re mistake so if someone reads this, and in the future experiences the same thing, they will know how to fix it.