Raised This Month: $ Target: $400
 0% 

Client real uptime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 12-09-2011 , 13:05   Client real uptime
Reply With Quote #1

Hello,

I've checked the AMXX documentation, and i found get_user_time

But this don't return the real user uptime, as you can see in the "stats" command. Instead, the get_user_time returns only the time spended on the curent map because AMXX executes client_disconnect at all players on map change event.

My question is: The command stats, wich returns the right client uptime, is there a way to save and parse it's results? Thank you.
DjOptimuS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-09-2011 , 13:19   Re: Client real uptime
Reply With Quote #2

stats returns the server uptime, not client.
__________________
Arkshine is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 12-09-2011 , 14:36   Re: Client real uptime
Reply With Quote #3

My mistake, i mean the status command, sorry.
DjOptimuS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-09-2011 , 15:14   Re: Client real uptime
Reply With Quote #4

Using Orpheu is going to be a pain and doesn't deal properly anyway with "char* format, ...".

The only way I can think for now, is to simply writing "status log" (notice the "log"), it will generate a file status.log in the mod directory. From that, it will be easy to parse the file then deleting it after.
__________________
Arkshine is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 12-09-2011 , 21:17   Re: Client real uptime
Reply With Quote #5

thank you for your answer
DjOptimuS is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode