AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_user_time problem ! (https://forums.alliedmods.net/showthread.php?t=94206)

K.K.Lv 06-08-2009 00:08

get_user_time problem !
 
who can tell me how to call a func get player total time !!

Bugsy 06-08-2009 01:05

Re: get_user_time problem !
 
new iTime = get_user_time( id );

K.K.Lv 06-08-2009 03:03

Re: get_user_time problem !
 
bugsy!
you don't know what i mean!
I mean the total time that player play in a server !!

Sylwester 06-08-2009 03:24

Re: get_user_time problem !
 
There is no such function in amxx.
Every time client leaves your server, you must add get_user_time(id) to some variable stored in some database (nVault, mysql etc.) and then when you want to know total time, you just need to retrieve that variable from database and add current get_user_time(id) to it.

Sn!ff3r 06-08-2009 05:21

Re: get_user_time problem !
 
http://forums.alliedmods.net/showthread.php?p=457071

K.K.Lv 06-08-2009 12:38

Re: get_user_time problem !
 
thanks !
I got it!!
thanks very much!

Akex 08-15-2012 15:22

Re: get_user_time problem !
 
Thank you! i have been looking for this.


All times are GMT -4. The time now is 13:48.

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