onPlayerStart call?

This is the dedicated forum for RemoteCP4: the web based dedicated server control script.

Moderators: hal|Sascha, TM-Patrol

Post Reply
FragLesS
cyclist
cyclist
Posts: 37
Joined: 07 Jul 2008 21:39
Owned TM-games: TMO,TMF,TMUF

onPlayerStart call?

Post by FragLesS » 27 Dec 2009 18:26

Hi,

I'm writing a plugin to save the times in timeattack to a database and take them together as an average time for each day so that I have a table to see how the times variable from day to day ;)

Therefore I want to take the number of resets ingame and I need for that the call like "onPlayerStart" which is called when somebody start to a round. I hope it was easy to understand :/

Regards

WolFree aka FraglesS

User avatar
hal|Sascha
Pit Crew
Pit Crew
Posts: 671
Joined: 12 Aug 2005 16:22
Owned TM-games: TMU, TMN, TMS, TMO
Location: Germany Munich
Contact:

Re: onPlayerStart call?

Post by hal|Sascha » 27 Dec 2009 19:17

if a player resets its race the server sends a empty onPlayerFinish (without time).
Could help, a real onPlayerStart ist currently not available.
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness

FragLesS
cyclist
cyclist
Posts: 37
Joined: 07 Jul 2008 21:39
Owned TM-games: TMO,TMF,TMUF

Re: onPlayerStart call?

Post by FragLesS » 27 Dec 2009 19:21

Okay, so the call "onPlayerFinish" is given EVERYTIME, even if he resets ? That could be the solution for my problem. Thanks Sascha :)

Xymph
Pit Crew
Pit Crew
Posts: 5654
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: onPlayerStart call?

Post by Xymph » 27 Dec 2009 21:46

hal|Sascha wrote:if a player resets its race the server sends a empty onPlayerFinish (without time).
Most of the time, but not always. It's a bug I reported to xbx early this year. To my knowledge it hasn't been addressed yet, although I didn't retest for it since then in newer dedicated builds.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

Post Reply