1. 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:
    • 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!")
    I'm not familair with the Steam API, is this possible?

    Thanks! :D
     
  2. Wulf

    Wulf Community Admin

  3. 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.
     
  4. Wulf

    Wulf Community Admin

    Oops, you're right. Take a look at this instead, but it may need updating. http://oxidemod.org/resources/rust-time.449/