Jump to content

TDMA timer


maarten123

Recommended Posts

Hi everyone,

As you know from my previous topic I'm working on the game mode TDMA,

Now I understand some do not make maps.

now I want to make a kind of timer that after five minutes and then vote manager opens a new map will open a new round begins.

how can I do?

Regards Maarten123

sorry for my bad english I'm Dutch

Link to comment

Something like;

function timer()
setTimer(vote,300000,1)
end
addEventHandler("onResourceStart",getResourceRootElement(),timer) -- onResourceStart isn't a very good option, replace it...
 
function vote()
exports.votemanager:startPoll() -- Between () enter the arguments (see [url=https://wiki.multitheftauto.com/wiki/Resource:Votemanager]https://wiki.multitheftauto.com/wiki/Resource:Votemanager[/url])
end

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...