I'm looking for a script or a menu or something that will allow me to set the spawn point for a job. Examples, Mayor spawns in office, Cops spawn in HQ......I'm running the latest darkRP and ULX admin mod. Any help?
This section is for gamemode development, this is a lua request.
Ask your question here: [url]http://www.facepunch.com/forums/53-Requests[/url]
[code]/setspawn job - clears spawns for the job and adds a new
/addspawn job - adds a new spawn to a job[/code]
*sigh* Okay, check to see if a player is on a team then use ply:SetPos.
[lua]
--make a table first
teamdickspawn = {}
teamdickspawn[1] = vector (insert numbers here.)
teamdickspawn[2] = vector (insert numbers here.)
-- then on playerspawn
function GM:Playerspawn (ply) -- this is already made in the gamemode.
if ply:Team() == 2 then ply:SetPos(teamdickspawn[1])
if ply:Team() == 1 then ply:SetPos(teamdckspawn[2])
end
end
end
[/lua]
Yep.
Sorry, you need to Log In to post a reply to this thread.