Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 1.28 KB | None | 0 0
  1. function SpawnCityHallMan()
  2.     local cityhallpos
  3.     local cityhallang
  4.     if game.GetMap() == "gm_flatgrass" then
  5.         cityhallpos = Vector(800,-483,30)
  6.         cityhallang = Angle(0,90,0)
  7.     elseif game.GetMap() == "rp_evocity_v2d" then
  8.         cityhallpos = Vector(-5201,-9450,71.9891)
  9.         cityhallang = Angle(0,90,0)
  10.     elseif game.GetMap() == "rp_evocity2_v2p" then
  11.         cityhallpos = Vector(1275.187500,993.562500,100)
  12.         cityhallang = Angle(0,180,0)
  13.     elseif game.GetMap() == "rp_townsend_v1p" then
  14.         cityhallpos = Vector(-14022.656250,2435,30)
  15.         cityhallang = Angle(0,90,0)
  16.     elseif game.GetMap() == "rp_cosmoscity_v1b" then
  17.         cityhallpos = Vector(-7181.723633,-5728.483887,64.031250)
  18.         cityhallang = Angle(0,-90,0)
  19.     elseif game.GetMap() == "rp_downtown_v2" then
  20.         cityhallpos = Vector(-1519.039917,-49.045139,-131.968750)
  21.         cityhallang = Angle(0,-90,0)
  22.     end    
  23.     if cityhallpos == nil then return end      
  24.     cityhallman = ents.Create("npc_generic")
  25.     cityhallman:SetNPCName("City Hall Man")
  26.     cityhallman:SetNWString("NPCName","City Hall Man")
  27.     cityhallman:SetModel("models/Humans/Group01/male_09.mdl")
  28.     cityhallman:SetPos(cityhallpos)
  29.     cityhallman:SetAngles(cityhallang)
  30.     cityhallman:Spawn()
  31.     cityhallman:DropToFloor()
  32.     cityhallman:EnableChat()
  33. end
  34. hook.Add("InitPostEntity","SpawnCityHallMan",SpawnCityHallMan)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement