Raised This Month: $51 Target: $400
 12% 

Time played for all users


Post New Thread Reply   
 
Thread Tools Display Modes
thecount
Veteran Member
Join Date: Jul 2013
Old 07-03-2015 , 00:53   Re: Time played for all users
Reply With Quote #11

What a rollercoaster this thread has been. Atleast it didn't end in fire and flames.
thecount is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 07-03-2015 , 06:28   Re: Time played for all users
Reply With Quote #12

Quote:
Originally Posted by thecount View Post
What a rollercoaster this thread has been. Atleast it didn't end in fire and flames.



//

@ThatOneGuy, will you be releasing it publicly? I feel as though it'd be something good to add to player analytics, also adminWatch already does what he is asking, but clearly only for admins.

However, I did just realize this plugin existed, Player Time Tracker which is what OP was asking for.

Last edited by Maxximou5; 07-03-2015 at 06:30.
Maxximou5 is offline
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 07-03-2015 , 08:59   Re: Time played for all users
Reply With Quote #13

Quote:
Originally Posted by Maxximou5 View Post



//

@ThatOneGuy, will you be releasing it publicly? I feel as though it'd be something good to add to player analytics, also adminWatch already does what he is asking, but clearly only for admins.

However, I did just realize this plugin existed, Player Time Tracker which is what OP was asking for.
Player time tracker seam to require you manually adding players to track their time. I want all players to be tracked from the moment they connect.
And all the extra features are unnecessary for me. I only want time tracking to MySQL, maybe some command like sm_timepayed <player> or something.

Ps, he mentioned yesterday that he will keep it private (maybe for sale)
__________________
CAOSK-ESPORTS.COM

Last edited by Schpraaankiii; 07-03-2015 at 09:02.
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
thecount
Veteran Member
Join Date: Jul 2013
Old 07-03-2015 , 13:25   Re: Time played for all users
Reply With Quote #14

Quote:
Originally Posted by Schpraaankiii View Post
Player time tracker seam to require you manually adding players to track their time. I want all players to be tracked from the moment they connect. I only want time tracking to MySQL, maybe some command like sm_timepayed <player> or something.
Quote:
Originally Posted by crazydog View Post
Commands:
sm_ptt_add <Client Name>: Adds a client to the database to be tracked
sm_ptt_gettime <Client Name>: Prints target's current time played (hh:mm:ss) into console.
sm_mytime: Prints your time into chat. (Alternatively, say !mytime).
PHP Code:
#include <sourcemod>
public OnClientPutInServer(client){ ServerCommand("sm_ptt_add \"%N\""client); } 

Last edited by thecount; 07-03-2015 at 13:29.
thecount is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 07-03-2015 , 14:40   Re: Time played for all users
Reply With Quote #15

Quote:
Originally Posted by thecount View Post
PHP Code:
#include <sourcemod>
public OnClientPutInServer(client){ ServerCommand("sm_ptt_add \"%N\""client); } 
I remember that once, someone almost killed me (well, kiding, but yeah...), that you should definitly not use the name when targinting player using ServerCommand but client index instend.
__________________
Want to check my plugins ?
Arkarr is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 07-03-2015 , 14:46   Re: Time played for all users
Reply With Quote #16

Quote:
Originally Posted by Arkarr View Post
I remember that once, someone almost killed me (well, kiding, but yeah...), that you should definitly not use the name when targinting player using ServerCommand but client index instend.
I understand that because of the ";quit;" crap, but I think this should work nonetheless because the quotations protect it from the semicolon.
thecount is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 07-03-2015 , 14:48   Re: Time played for all users
Reply With Quote #17

No, they don't. Think about it, what exactly will that render when formatted? sm_ptt_add "";quit;""

Last edited by necavi; 07-03-2015 at 14:48.
necavi is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 07-03-2015 , 21:22   Re: Time played for all users
Reply With Quote #18

Quote:
Originally Posted by necavi View Post
No, they don't. Think about it, what exactly will that render when formatted? sm_ptt_add "";quit;""
Ok.
PHP Code:
#include <sourcemod>
public OnClientPutInServer(client){ ServerCommand("sm_ptt_add #%d"GetClientUserId(client)); } 
thecount 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 19:10.


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