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. |
Re: Client real uptime
stats returns the server uptime, not client.
|
Re: Client real uptime
My mistake, i mean the status command, sorry.
|
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. |
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.