AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem: get_user_time at mapchange (https://forums.alliedmods.net/showthread.php?t=107550)

fragnichtnach 10-27-2009 18:03

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?

lazarev 10-28-2009 03:23

Re: Problem: get_user_time at mapchange
 
Quote:

Thanks for help and reading?
yes.

fragnichtnach 10-28-2009 09:39

Re: Problem: get_user_time at mapchange
 
Sorry, shouldn't be a question...

Thanks for help and reading!

fragnichtnach 10-29-2009 04:40

Re: Problem: get_user_time at mapchange
 
Nobody answers... Seems like it is not possible with amxmodx.

Xellath 10-29-2009 04:52

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.

Exolent[jNr] 10-29-2009 10:53

Re: Problem: get_user_time at mapchange
 
Quote:

Originally Posted by Xellath (Post 974993)
It can store the array through map changes.

Fixed.

Xellath 10-29-2009 16:26

Re: Problem: get_user_time at mapchange
 
Quote:

Originally Posted by Exolent[jNr] (Post 975197)
Fixed.

:mrgreen:

xPaw 10-29-2009 16:28

Re: Problem: get_user_time at mapchange
 
You dont need Array Solutions for that, tries and arrays saves dates trough map changes too, afaik

Owyn 10-30-2009 09:50

Re: Problem: get_user_time at mapchange
 
Quote:

Originally Posted by xPaw (Post 975473)
You dont need Array Solutions for that, tries and arrays saves dates trough map changes too, afaik

uhm u sure? so why doesn't Exolent use it in his ban plugin then?

Exolent[jNr] 10-30-2009 15:06

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.