Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GM:StartGamemodeVote()
- if( !GAMEMODE.m_bVotingStarted ) then
- if ( fretta_voting:GetBool() ) then
- GAMEMODE.WinningGamemode = "prop_hunt"
- SetGlobalBool("InGamemodeVote", true)
- GAMEMODE.m_bVotingStarted = true
- GAMEMODE:ClearPlayerWants()
- GAMEMODE:StartMapVote()
- else
- GAMEMODE.WinningGamemode = "prop_hunt"
- SetGlobalBool("InGamemodeVote", true)
- GAMEMODE.m_bVotingStarted = true
- GAMEMODE:ClearPlayerWants()
- GAMEMODE:StartMapVote()
- end
- timer.Simple( fretta_votetime:GetFloat(), function() GAMEMODE:FinishGamemodeVote( true ) end )
- SetGlobalFloat( "VoteEndTime", CurTime() + fretta_votetime:GetFloat() )
- GAMEMODE.m_bVotingStarted = true;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment