buliwyf 4 Posted September 9, 2006 Hi.. Do anyone know if there is a possibility to make an inquiry about the playing time of current maps? The only thing i found out are the m_servervars: timeleft, Param1 & Param2 But what about playtime or something like that? I will need this information for a Real Time Server Query. I use the tool OFP WATCH, where i can see the played time, so i guess there will be a chance... Share this post Link to post Share on other sites
.kju 3241 Posted September 9, 2006 i think there was time (reserved variable) for played time and _time for script "running" duration. no expert though Buli Share this post Link to post Share on other sites
buliwyf 4 Posted September 9, 2006 I already tested time, but it didn`t work... Share this post Link to post Share on other sites
crashdome 2 Posted September 9, 2006 daytime give you number of hours since midnight (fractional for mins and secs) Share this post Link to post Share on other sites
buliwyf 4 Posted September 9, 2006 Same result.. it dindn`t work... It works only in missions... but not for external queries... Share this post Link to post Share on other sites
.kju 3241 Posted September 10, 2006 hm you might wanna try to ask daddl about his server query script http://daddl.net/ or the old one from wkk: http://www.ofp-fr.net/ofp/ or ecl guys about theirs: http://www.european-combat-league.com/ Share this post Link to post Share on other sites
buliwyf 4 Posted September 10, 2006 Hm.. i know that tools.. but noone of them has an current playing time.. the only tool i know is OFPWATCH.. but i guess it works with a trick.. not with a global server variable.. Share this post Link to post Share on other sites
rundll.exe 12 Posted September 11, 2006 What you want is not possible in OFP and yes, ofpwatch uses a trick. The OFPwatch enabled servers send a message to the ofpwatch server that they started the mission. The client program can read this info and calculate the mission time. what you could do if you make the missions youself (or edit them): execute this only on the server <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #start timeleft = time ~5 goto start Didnt test this, but like this you should be able to read the mission time from the timeleft variable wich is broadcasted in a server query. Share this post Link to post Share on other sites
Placebo 28 Posted September 11, 2006 This is an MP question not a troubleshooting question. Share this post Link to post Share on other sites
buliwyf 4 Posted September 11, 2006 Thanks for all your answers... and sorry for OffTopic... Share this post Link to post Share on other sites