I asked this question in the gamemode section but got no response;
Is there anyway to disable fretta from starting the round until each player has at least 1 player?
My gamemode is round based and if the rounds get messed up cause of idle crap it fucks a lot up.
[LUA]
function GM:CanStartRound( iNum )
if team.NumPlayers( TEAM_RED ) > 0 and team.NumPlayers( TEAM_BLUE ) > 0 then
return true
else
return false
end
end
[/LUA]
[b][url=wiki.garrysmod.com/?title=Gamemode.CanStartRound]Gamemode.CanStartRound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Holy crap i feel dumb. Thank you.
Sorry, you need to Log In to post a reply to this thread.