AI Cops LUA Help

I am working on my own game mode for the most part it works accept my AI cops I am using the metro police for. Literally nothing happens when the player is wanted
My Un-Working Code:



local spawnlocation = Player:GetLocation()
local adds = math.random( 10, 50 )
local spl = Vector(spawnlocation)+Vector(adds,0,adds)
local cop = ents.Create( "npc_metropolice" )

function spawncopsrep()
		cop:SetPos( Vector( spl ) )
		cop:Spawn()
		cop:SetTarget (Player)
		cop:SetEnemy (Player)
	end
end)

hook.Add( "playerWanted", "wanted", function(ply, target, reason)
		timer.Create( "cs", 5, 0, spawncopsrep)
	end
end)

hook.Add( "playerUnWanted", "wanted", function(excrimianl, arrestor)
		timer.stop( "cs")
	end
end)


Is added as a shared file in the autorun folder

http://www.facepunch.com/forums/16

Post here and you’ll get a better reply. :dance: