HunT Posted May 13, 2011 Share Posted May 13, 2011 players = noobs Is possible remove the play again in race mode? Many players select again again again. Help pliz Link to comment
CowTurbo Posted May 13, 2011 Share Posted May 13, 2011 edit the votemanager. Maybe i can help u, contact me in MSN when im online . Link to comment
drifterCZE Posted May 13, 2011 Share Posted May 13, 2011 I made it few monts ago. Anyway, I don't use it 1. Add this at beginning of racevoting_server.lua in race resource local timesMapPlayed = 0 local lastMapPlayed = 0 2. REPLACE this if currentMap then table.insert(poll, {"Play again", 'nextMapVoteResult', getRootElement(), currentMap}) end WITH this if currentMap ~= lastMapPlayed then timesMapPlayed = 1 lastMapPlayed = currentMap end if currentMap and timesMapPlayed <= 2 then -- map could be played max. 3 times in row timesMapPlayed = timesMapPlayed + 1 table.insert(poll, {"Play again", 'nextMapVoteResult', getRootElement(), currentMap}) end It may work. At least it works for me Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now