Advertisement
HyperionSRC

Zombie spawn code

Dec 14th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. function SpawnZombie(player, command, args)
  2.     if(player:IsAdmin() or player:IsSuperAdmin()) then
  3.         local tr = player:GetEyeTrace()
  4.         local ent = ents.Create("npc_zombie")
  5.         ent:SetPos(tr.HitPos)
  6.         ent:Spawn()
  7.     end
  8. end
  9. concommand.Add("hype_spawnzombie", SpawnZombie)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement