maarten123 Posted April 30, 2010 Share Posted April 30, 2010 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
Callum Posted May 1, 2010 Share Posted May 1, 2010 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
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