I am running a modified DarkRP, called ZombieRP, and I’m tired of going on long searches for maps with zombie spawns in them.
I found this on another thread, but its aimed at ZMod, and I tried it on a test server and didn’t work.
–local numZombies = 0
–local maxZombies = 150
if ( numZombies < maxZombies ) then local zombie = ents.Create("npc_zombie") zombie:SetPos( Vector( -3744.217773, -1111.466675, 314.03125 ) ) zombie:Spawn() numZombies = numZombies + 1 timer.Simple( 10, ZombieSpawns ) end
hook.Add( “InitPostEntity”, “StartZombieSpawning”, ZombieSpawns )[/lua]
I turned it into a darkrp module, in the modification/lua/darkrp_module/zombiespawns/sv_zombiespawns.lua
When that didn’t work, I tried putting it into modification/lua/autorun/server/zombiespawns.lua
Any code help, and/or installation help would be much appreciated.