AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Client real uptime (https://forums.alliedmods.net/showthread.php?t=173720)

DjOptimuS 12-09-2011 13:05

Client real uptime
 
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.

Arkshine 12-09-2011 13:19

Re: Client real uptime
 
stats returns the server uptime, not client.

DjOptimuS 12-09-2011 14:36

Re: Client real uptime
 
My mistake, i mean the status command, sorry.

Arkshine 12-09-2011 15:14

Re: Client real uptime
 
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.

DjOptimuS 12-09-2011 21:17

Re: Client real uptime
 
thank you for your answer


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

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