Doubt with onEndRace Event

This forum is dedicated to the Aseco/Rasp 2 server records and control script by Flo and Assembler Maniac. Announcements and issues can be discussed in this forum.

Moderators: Flo, Assembler Maniac, f*ckfish, TM-Patrol

Post Reply
User avatar
sunday driver
sunday driver
Posts: 68
Joined: 09 Mar 2006 17:28
Location: México

Doubt with onEndRace Event

Post by daemon » 12 Jun 2008 02:11

Hello, as far as my testing goes, the event onEndRace is triggered whenever a track ends normally, or with commands /admin nextmap, or /admin restartmap.

I need my plugin to do one thing when track ends normally or command nextmap is used, and another thing when command restartmap is used.

My doubt is if there is a way to detect if the server is just restarting the same track, or changing to a new one, but with the onEndRace event.

Thanks. :)
It's the decisions you make, when you have no time to make them, that define who you are.

solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all

Re: Doubt with onEndRace Event

Post by nocturne » 12 Jun 2008 04:52

Well, it's certainly possible, but I'm sure not without editing the restart/skip commands in order to set a 'flag', which would be reset upon starting the next challenge. If it was a replayed map, you could set up a simple loop to catch if the track in the jukebox is the same as the current, but I doubt it would work with a restart.

Post Reply