Raised This Month: $ Target: $400
 0% 

Problem: get_user_time at mapchange


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lazarev
Veteran Member
Join Date: Sep 2008
Old 10-28-2009 , 03:23   Re: Problem: get_user_time at mapchange
Reply With Quote #1

Quote:
Thanks for help and reading?
yes.
lazarev is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-28-2009 , 09:39   Re: Problem: get_user_time at mapchange
Reply With Quote #2

Sorry, shouldn't be a question...

Thanks for help and reading!
fragnichtnach is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 10-29-2009 , 04:40   Re: Problem: get_user_time at mapchange
Reply With Quote #3

Nobody answers... Seems like it is not possible with amxmodx.
fragnichtnach is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-29-2009 , 04:52   Re: Problem: get_user_time at mapchange
Reply With Quote #4

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.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 10-30-2009 at 12:38. Reason: typos
Xellath is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-29-2009 , 10:53   Re: Problem: get_user_time at mapchange
Reply With Quote #5

Quote:
Originally Posted by Xellath View Post
It can store the array through map changes.
Fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-29-2009 , 16:26   Re: Problem: get_user_time at mapchange
Reply With Quote #6

Quote:
Originally Posted by Exolent[jNr] View Post
Fixed.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Reply



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 17:33.


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