Problem: get_user_time at mapchange
I am searching for a methode to get the connection time HLSW for example shows.
get_user_time just returns the connection time while the plugin is running. So if mp_timelimit is 30, get_user_time return at maximum 30*60. But there are players shown at HLSW and the "View server info" with a connection time over an hour for example. How do I get this time for a specific player? Thanks for help and reading? |
Re: Problem: get_user_time at mapchange
Quote:
|
Re: Problem: get_user_time at mapchange
Sorry, shouldn't be a question...
Thanks for help and reading! |
Re: Problem: get_user_time at mapchange
Nobody answers... Seems like it is not possible with amxmodx.
|
Re: Problem: get_user_time at mapchange
You could get the current time and save it in nvault just before map change and then check for the users steamid/ip and just continue the counting. If the user disconnects before the map change, you should check on the next map whether the user is still connected; if he's not, then remove the entry.
Other than that, I highly doubt it's possible(with a native). You may also test storing it in an array, using this module. It can store the array through map changes. |
Re: Problem: get_user_time at mapchange
Quote:
|
Re: Problem: get_user_time at mapchange
Quote:
|
Re: Problem: get_user_time at mapchange
You dont need Array Solutions for that, tries and arrays saves dates trough map changes too, afaik
|
Re: Problem: get_user_time at mapchange
Quote:
|
Re: Problem: get_user_time at mapchange
Because I didn't want to save them over map change.
|
| All times are GMT -4. The time now is 17:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.