Jump to content

How to check if round is ended??


Ramboo

Recommended Posts

Hi guys. another newb question (still newbie in scripting)

I need to start setted map when map finishes. I ve been looking this in resources for all day and didn't find the resolution.

So i need : Check through eventhandler if map is finished (time = 0 or there is a winner). then, before newmap votepoll appears, the setted map by admin have to start. Help pleas =)

Edited by Guest
Link to comment
Which gamemode are you running? if you are running race, then it should automaticly do so for you.. shouldn't it?

and yes, it is Race gamemode.

yes it should, but i wish to understand the way it works, you know. kinda, i created my own setnextmap system.

Link to comment
  
addEvent("onRaceStateChanging", true) 
addEventHandler("onRaceStateChanging", getRootElement(), 
function(newStateName) 
if(newStateName == "PostFinish")then 
-- when only one player left alive. 
end 
end) 
  

i think that was how i used to do it.. i dont remember.

Link to comment
  • 5 weeks later...

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...