Raised This Month: $ Target: $400
 0% 

[REQ] Store players play time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rirre
Veteran Member
Join Date: Nov 2006
Old 07-05-2012 , 05:18   [REQ] Store players play time
Reply With Quote #1

A lot of threads about storing players time, but not in seconds.
I would like this to be executed when a player reach 1800, 3600, 7200, 14400 (seconds) played time.
Code:
    new name[32]     get_user_name(id,name,31)     server_cmd("give_player ^"%s^"", name)
It will be used in other mods than only CS 1.6 so that's why it have to be stored in MySQL.
Would be great to make an option/cvar to save the time via steam id or nickname since I use to play LAN-parties without internet.

Last edited by Rirre; 08-04-2012 at 17:37.
Rirre is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 07-19-2012 , 12:49   Re: [REQ] Store players play time (mysql)
Reply With Quote #2

Bump.
Rirre is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 08-03-2012 , 17:15   Re: [REQ] Store players play time (mysql)
Reply With Quote #3

2nd Bump.
Rirre is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 08-18-2012 , 18:20   Re: [REQ] Store players play time
Reply With Quote #4

3rd Bump.
Rirre is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 08-18-2012 , 20:59   Re: [REQ] Store players play time
Reply With Quote #5

Can you describe better what you want ? I have made played time plugin with MySQL saving, top15 and more, so i might be able to help you.
__________________

Accepting all kinds of requests via private message.
matsi is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 08-19-2012 , 07:37   Re: [REQ] Store players play time
Reply With Quote #6

Same as all other "Played Time" plugins, but this will execute this command (This command already exist in another plugin) is for reward the player when specified seconds have been played on the game server instead of checking the minutes/hours.

Since if the player have played for etc. 1 minute and get rewarded and start to reconnect, this will still reward the player if he have 1 minute in record which is abusive.
That's the reason why it have to check by seconds.

Can't explain better than that.

Last edited by Rirre; 08-19-2012 at 07:44.
Rirre is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 08-19-2012 , 08:31   Re: [REQ] Store players play time
Reply With Quote #7

Quote:
Originally Posted by Rirre View Post
Same as all other "Played Time" plugins, but this will execute this command (This command already exist in another plugin) is for reward the player when specified seconds have been played on the game server instead of checking the minutes/hours.

Since if the player have played for etc. 1 minute and get rewarded and start to reconnect, this will still reward the player if he have 1 minute in record which is abusive.
That's the reason why it have to check by seconds.

Can't explain better than that.
How accurate you want this to be? I mean if you want it exactly when player gets 1440 seconds you would have to check for that each second. Or do you want it to be checked in connection like on your previous plugins?
__________________

Accepting all kinds of requests via private message.
matsi is offline
Rirre
Veteran Member
Join Date: Nov 2006
Old 08-19-2012 , 10:29   Re: [REQ] Store players play time
Reply With Quote #8

Should be checked every second and load/continue from the last time the player played on the game server.
So when the player have reach 1800 seconds, the next level is 3600 seconds.
Would be good to limit it also so it don't continue forever when all these levels have already been reached.

Last edited by Rirre; 08-19-2012 at 10:35.
Rirre 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 12:41.


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