This is what I found at: "race/racevoting_server.lua":
function startMidMapVoteForRestartMap(player)
-- Check state and race time left
if not stateAllowsRestartMapVote() then
if player then
outputRace( "I'm afraid I can't let you do that, " .. getPlayerName(player) .. ".", player )
end
return
end
displayHilariarseMessage( player )
exports.votemanager:stopPoll()
-- Actual vote started here
local pollDidStart = exports.votemanager:startPoll {
title='Do you want to restart the current map?',
percentage=51,
timeout=15,
allowchange=true,
visibleTo=getRootElement(),
[1]={'Yes', 'midMapRestartVoteResult', getRootElement(), true},
[2]={'No', 'midMapRestartVoteResult', getRootElement(), false;default=true},
}
-- Change state if vote did start
if pollDidStart then
gotoState('MidMapVote')
end
end
addCommandHandler('voteredo',startMidMapVoteForRestartMap)
I would say that you must remove this part:
-- Check state and race time left
if not stateAllowsRestartMapVote() then
if player then
outputRace( "I'm afraid I can't let you do that, " .. getPlayerName(player) .. ".", player )
end
return
end