Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SpawnCityHallMan()
- local cityhallpos
- local cityhallang
- if game.GetMap() == "gm_flatgrass" then
- cityhallpos = Vector(800,-483,30)
- cityhallang = Angle(0,90,0)
- elseif game.GetMap() == "rp_evocity_v2d" then
- cityhallpos = Vector(-5201,-9450,71.9891)
- cityhallang = Angle(0,90,0)
- elseif game.GetMap() == "rp_evocity2_v2p" then
- cityhallpos = Vector(1275.187500,993.562500,100)
- cityhallang = Angle(0,180,0)
- elseif game.GetMap() == "rp_townsend_v1p" then
- cityhallpos = Vector(-14022.656250,2435,30)
- cityhallang = Angle(0,90,0)
- elseif game.GetMap() == "rp_cosmoscity_v1b" then
- cityhallpos = Vector(-7181.723633,-5728.483887,64.031250)
- cityhallang = Angle(0,-90,0)
- elseif game.GetMap() == "rp_downtown_v2" then
- cityhallpos = Vector(-1519.039917,-49.045139,-131.968750)
- cityhallang = Angle(0,-90,0)
- end
- if cityhallpos == nil then return end
- cityhallman = ents.Create("npc_generic")
- cityhallman:SetNPCName("City Hall Man")
- cityhallman:SetNWString("NPCName","City Hall Man")
- cityhallman:SetModel("models/Humans/Group01/male_09.mdl")
- cityhallman:SetPos(cityhallpos)
- cityhallman:SetAngles(cityhallang)
- cityhallman:Spawn()
- cityhallman:DropToFloor()
- cityhallman:EnableChat()
- end
- hook.Add("InitPostEntity","SpawnCityHallMan",SpawnCityHallMan)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement