Raised This Month: $ Target: $400
 0% 

get_user_time problem !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-08-2009 , 00:08   get_user_time problem !
Reply With Quote #1

who can tell me how to call a func get player total time !!
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-08-2009 , 01:05   Re: get_user_time problem !
Reply With Quote #2

new iTime = get_user_time( id );
__________________
Bugsy is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-08-2009 , 03:03   Re: get_user_time problem !
Reply With Quote #3

bugsy!
you don't know what i mean!
I mean the total time that player play in a server !!
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-08-2009 , 03:24   Re: get_user_time problem !
Reply With Quote #4

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.
__________________
Impossible is Nothing
Sylwester is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 06-08-2009 , 05:21   Re: get_user_time problem !
Reply With Quote #5

http://forums.alliedmods.net/showthread.php?p=457071
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-08-2009 , 12:38   Re: get_user_time problem !
Reply With Quote #6

thanks !
I got it!!
thanks very much!
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Akex
Junior Member
Join Date: May 2011
Old 08-15-2012 , 15:22   Re: get_user_time problem !
Reply With Quote #7

Thank you! i have been looking for this.
Akex 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 13:48.


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