Prop Hunt

I own a Prop Hunt server in Garry’s mod and when upon joining the server you select what role you want to play and if you the first in the server it will spawn in you straight away. Is there any was that I can add it so it will only start a new round when a number of players have join the server?

Init.lua:


function GM:CanStartRound()
	if #team.GetPlayers( TEAM_HUNTERS ) + #team.GetPlayers( TEAM_PROPS ) >= 2 then return true end
	return false
end


On PlayerDeathThink hook, return false when they’re not supposed to spawn.

[editline]16th March 2014[/editline]

Or use a built-in prop-hunt specific function!

Yeah you’re using the version of Prop Hunt that’s on the fretta base right because if you aren’t, my method won’t work