1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

need help making Cooperative Kill death ratio All requirements here

Discussion in 'Requests' started by Jose Antonio, May 27, 2017.

  1. Jose Antonio

    Jose Antonio Spider

    Messages:
    13
    need help making a KDR kill death ratio plugin

    Requirements:
    - Track every kill and death
    - Save them on a yml file or json
    - Import all pocketmine required classes for it
    - on /kdr command tell player his kdr incluying his total kills and deaths
    - on /kdr show the kdr (e.g. Player killed 1 player and has died 3 times the kill death ratio would be 1.00) (it should add the .00)

    Max time: tomorrow
    This plugin must be done tomorrow

    Just reply starting it as a new Main.php file from start.
     
  2. Jose Antonio

    Jose Antonio Spider

    Messages:
    13
    I got this for kdr
    $kdr = sprintf("%.2f", $kc/$dc);
    Now the top kdr
    5?
     
  3. Marabou

    Marabou Baby Zombie

    Messages:
    137
    GitHub:
    wiligangster
    $kdr = round($kc/$dc);
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    this is confusing are you requesting a plugin?
    or trying to make one?
     
  5. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
  6. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    #Advertising...
    I've been working on a plugin to keep track of these things. You can see the KDA with /stats because it tracks assists as well. The formula to calculate KDA is (kills + assists) / deaths.
    https://github.com/BlockHorizons/KillCounter
     
    corytortoise likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.