CSstats
Gem which handle csstats.dat file generated by CSX module in AMX Mod X (http://www.amxmodx.org/)
Installation
Add this line to your application's Gemfile:
gem 'csstats'
And then execute:
$ bundle
Or install it yourself as:
$ gem install csstats
Usage
require 'csstats'
stats = CSstats.new(path: 'csstats.dat')
stats.player(2).nick
You can set maxplayers value if you need to get specified number of players.
stats = CSstats.new(path: 'csstats.dat', maxplayers: 15)
stats.players_count
# => 15
You can find player by specified name.
stats = CSstats.new(path: 'csstats.dat')
stats.search_by_name('nick')
Supported Ruby Versions
This library aims to support and is tested against the following Ruby implementations:
- Ruby 1.9.2
- Ruby 1.9.3
- Ruby 2.0.0
Copyright
Copyright (c) 2013 Justas Palumickas. See LICENSE for details.