Hi guys!
I know how to get a players steam ID. I wonder if there is a way to find out how many hours of a certain game a player with a certain ID has played.
Like using a ChatCommand such as ("hours") to display something like "Your Rust playtime: 280 hours".
I would really apprechiate if someone had a useful code snippet, preferibly C#.
There are several inetresting thing to do with it, such as:
I'm not familair with the Steam API, is this possible?
- Restricting server access to a certain group of players (only users above or below a certain number of hours in Rust can join), e.g. if you want only experienced players with >100 hours of Rust
- Upon connect include it in the join message ("Player XYZ has joined, he is a bloody noob with only Y hours!" or "Welcome Player YXZ! Hours played: Y")
- Show congratulations ("GZ Player XYZ, you have reached 500 hours of Rust!")
Thanks!![]()
Access Steam Profile / Hours Played
Discussion in 'Rust Development' started by BlackEagle, Jun 30, 2015.
-
Wulf Community Admin
This plugin essentially already does what you are looking for: http://oxidemod.org/plugins/playtime.1162/. Any additional features could be requested from it.
-
Correct me if I'm wrong, but that plugin does only record the player's playtime for one specific server, doesn't it?
I was looking for a way to get the overall global playtime, like on all servers. The amount of hours displayed in Steam. -
Wulf Community Admin