Jump to content
Sign in to follow this  
buliwyf

Server variables

Recommended Posts

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

icon_rolleyes.gif

Share this post


Link to post
Share on other sites

i think there was time (reserved variable) for played time and _time for script "running" duration.

no expert though Buli wink_o.gif

Share this post


Link to post
Share on other sites

daytime give you number of hours since midnight (fractional for mins and secs)

Share this post


Link to post
Share on other sites

Same result.. it dindn`t work... sad_o.gif

It works only in missions... but not for external queries... confused_o.gif

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

This is an MP question not a troubleshooting question.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×