Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

0.5.0 g_serverinfo


  • Please log in to reply
5 replies to this topic

#1
OFFLINE   clan DIABOLIK

clan DIABOLIK

    Advanced Member

  • Members
  • PipPipPipPip
  • 322 posts
36
Getting Better
Hello silEnT team

Is it possible to have the information of uptime server ?
Maybe a value of g_serverinfo does it ?

Thanks in advance
*|BO|*figo

PS: when I was running jaymod+enhmod+omnibot, server was crashing from times to times, and so I was watching carefully the information "server uptime" (really sad :when it happens, you loose half or more players who dont re-connect)

Edited by blackops, 09 December 2011 - 09:24 PM.


#2
OFFLINE   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland
g_serverinfo's cvars arent updates every frame i think.
You can chack that with !update command, or just make simple LUA script which will be loging uptime per 1,2,3min or per map etc.

Edited by sol, 09 December 2011 - 10:52 PM.


#3
OFFLINE   clan DIABOLIK

clan DIABOLIK

    Advanced Member

  • Members
  • PipPipPipPip
  • 322 posts
36
Getting Better
Thanks for your response, but I don't want a !command like !uptime. I mean, in tools like HLSW, I don't have anymore the sv_uptime value (as jaymod).
So I thought it was related to g_serverinfo, but maybe I'm wrong.

:wacko:

#4
OFFLINE   Sol

Sol

    Regular Member

  • Coders
  • PipPipPip
  • 113 posts
28
On a distinguished road
  • LocationPoland
function et_InitGame( levelTime, randomSeed, restart )
    et.trap_SendConsoleCommand(et.EXEC_NOW,"sets sv_uptime "..et.trap_Cvar_Get( "uptime" ) )
end
but it's a string, and it will refresh every map

Edited by sol, 10 December 2011 - 04:35 PM.


#5
OFFLINE   clan DIABOLIK

clan DIABOLIK

    Advanced Member

  • Members
  • PipPipPipPip
  • 322 posts
36
Getting Better
Yeahhh - silent is solid as a rock !!!

!uptime was 10 days yestarday xD

Very good work silent-team, we really enjoy this mod, fun AND secure,
Have all happy christmas and happy new year
$mart/figo, blackops owner :ph34r:

#6
OFFLINE   TheSilencerPL

TheSilencerPL

    Advanced Member

  • Management
  • PipPipPipPip
  • 3099 posts
216
On the road to fame
  • LocationPoland

Have all happy christmas and happy new year

The same to you and thank you for the appreciation :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users