Skip to content

Instantly share code, notes, and snippets.

@mrspartak
Last active January 24, 2016 20:33
Show Gist options
  • Select an option

  • Save mrspartak/d6be64a50ea5ebb6decd to your computer and use it in GitHub Desktop.

Select an option

Save mrspartak/d6be64a50ea5ebb6decd to your computer and use it in GitHub Desktop.
var RustStatsCom = {
Title : "Rust-Stats.Com",
Author : "John Wick",
Version : V(0, 0, 1),
Description : "Collect stats from server to site rust-stats.com",
Init: function() {
print("Init works!");
rust.RunServerCommand('status', {});
},
Unload: function() {
print("Save files, destroy timers, etc.");
},
LoadDefaultConfig: function() {
print("Config loaded!");
this.Config.Options = {
"api_key" : 'key from rust-stats.com',
};
},
CanBeWounded: function(player, info) {
print("CanBeWounded works!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment