Raised This Month: $32 Target: $400
 8% 

Player Time Tracker v2.3.5


Post New Thread Reply   
 
Thread Tools Display Modes
NedStar
Senior Member
Join Date: Apr 2005
Location: The Netherlands
Old 06-05-2009 , 14:07   Re: Player Time Tracker [1.4.1]
Reply With Quote #11

Lovely, I'll give this a try.
Thanks for the addition.
__________________
NedStar is offline
Send a message via MSN to NedStar
krolus
Senior Member
Join Date: May 2009
Location: Russia, Omsk
Old 06-06-2009 , 05:26   Re: Player Time Tracker [1.4.1]
Reply With Quote #12

I add a cvar to disable/enable time tracker. I think it's useful improvment.
Code:
new Handle:sm_track_enabled = INVALID_HANDLE
public OnPluginStart()
...
sm_track_enabled = CreateConVar("sm_track_enabled", "1", "Enable Tracking? (1=yes 0=no)", FCVAR_NOTIFY, true, 0.0, true, 1.0)
if (sm_track_enabled){
    HookEvent("player_disconnect", UpdateEvent)
    HookEvent("player_activate", PlayerConnected)
}
ed: sometimes in logs appears errors like (i renamed tour plugin to ptt.smx, because your's is too long )
Quote:
L 06/06/2009 - 08:20:05: [SM] Native "GetClientTime" reported: Client 2 is not in game
L 06/06/2009 - 08:20:05: [SM] Displaying call stack trace for plugin "ptt.smx":
L 06/06/2009 - 08:20:05: [SM] [0] Line 345, D:\PROGRA~1\TF2PLU~1\SOURCE~1\SCRIPT~1\ptt.sp ::UpdateEvent()

Last edited by krolus; 06-06-2009 at 06:29.
krolus is offline
Darkhand
Member
Join Date: Sep 2008
Old 06-07-2009 , 13:29   Re: Player Time Tracker [1.4.1]
Reply With Quote #13

Great idea! Is it compatible with sqlite? If not can I make that a feature request? Thanks!
Darkhand is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 06-08-2009 , 04:52   Re: Player Time Tracker [1.4.1]
Reply With Quote #14

Quote:
Originally Posted by krolus View Post
ed: sometimes in logs appears errors like (i renamed tour plugin to ptt.smx, because your's is too long )
Which game are you using this with?
crazydog is offline
krolus
Senior Member
Join Date: May 2009
Location: Russia, Omsk
Old 06-08-2009 , 04:57   Re: Player Time Tracker [1.4.1]
Reply With Quote #15

crazydog, tf2. I add EventHookMode_Pre to HookEvent("player_disconnect"...). Errors gone.
krolus is offline
n0limit
Senior Member
Join Date: May 2009
Old 06-09-2009 , 15:04   Re: Player Time Tracker [1.4.1]
Reply With Quote #16

Nice, how about a public command so people can see their own time on the server (or others even)?
n0limit is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 06-12-2009 , 04:55   Re: Player Time Tracker [1.4.1]
Reply With Quote #17

Thanks for the notes guys. I'm working on the next version right now, it'll be up soon.

@Darkhand, I have 0 experience with SQLite, so that probably won't happen. If someone else wants to create SQLite support for this plugin, I'd be glad to implement it.

Last edited by crazydog; 06-12-2009 at 04:58.
crazydog is offline
krolus
Senior Member
Join Date: May 2009
Location: Russia, Omsk
Old 06-12-2009 , 05:36   Re: Player Time Tracker [1.4.1]
Reply With Quote #18

errors still happens =( i don't know how to fix it
krolus is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 06-12-2009 , 07:38   Re: Player Time Tracker [1.5]
Reply With Quote #19

Version 1.5 is out. Try it out, let me know if anything isn't working right.

Also, keep the suggestions coming!

@krouls
Let me know if the "[SM] Native "GetClientTime" reported: Client 2 is not in game" error is still occuring.

@n0limit
You can modify the code yourself if you want anyone to see anyone's time. Just change the line:
Code:
RegAdminCmd("sm_track_gettime", Command_GetTime, ADMFLAG_BAN, "gets the total time in your servers of the client")
to
Code:
RegConsoleCmd("sm_track_gettime", Command_GetTime, "gets the total time in your servers of the client")

That'll let anyone run the "sm_track_gettime" command.

Last edited by crazydog; 06-12-2009 at 07:45.
crazydog is offline
krolus
Senior Member
Join Date: May 2009
Location: Russia, Omsk
Old 06-12-2009 , 07:42   Re: Player Time Tracker [1.5]
Reply With Quote #20

crazydog, krolus
plz update .sp file.
krolus 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 23:23.


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