Hurtworld Statistics and kill/death ratio

Discussion in 'Plugin Requests' started by AMBER 2, Jan 19, 2016.

  1. Hey that is a request for developper, maybe create a simple Stats plugin.
    It count Kill/Death/Ratio

    Command:

    /Stats (Show self Stats)
    /Stats Amber ( show Amber's Stats)
    /Reset ( Reset Stats)

    Somethink like this. I think it's not too much work and that can be rly cool :)

    PS: i'm trying to make the plugin but i don't rly find the API so it's prety hard to work on it.. I'm free if a dev can help me
     
  2. It is possible to create a system of K / D Ratio?
    The statistics would be seen whenever the player to kill another or die, besides being possible to check eg command: / kd
     
  3. Hey mate, just use the OnPlayerDeath hook and add them to a dictionary each, one for deaths, one for kills.

    It's actually quite simple. Do as much as you can and just reply ehre when you run into problems or send me a PM.
     
  4. Help me, where add the OnPlayerDeath ? :X
     
  5. Take a quick peak at docs.oxidemod.org.
    Code:
    namespace Oxide.Plugins
    {
    [Info("EpicPlugin", "Unknown", 0.1)]
    [Description("Makes epic stuff happen")]class EpicPlugin : HurtworldPlugin
    {
    // The rest of the code and magic
    }
    }
    
    The hook should be inside the section marked by the double slashes.
    You will also need a dictionary and data file.

    The following links will most likely be helpful to you.
    Unity - Lists and Dictionaries
    Oxide API for Hurtworld