Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

KillRate 2.1.1

Keep track of the number of kills

  1. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    I was thinking to simply double the reward for player kills. (Which is easier and has less changes).

    As it is, I am skeptical on how interesting the killstreak feature is...
  2. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    it doubles money not point, I set the point as a Kill count since theres no sign for topkill, just money :) also no need mssg to show how many player did earn in public chat
  3. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Huh? you can have a sign for all stats in KillRate... Just need to place the right keyword.

    Code:
    [RANKINGS]
    ^^^
    stat
    
    Change stat with whatever, for example: "streak" for your current streak, "player", for the number of players killed, "deaths", for the number of times you were killed. Essentially, when you do "/kr stats" you get a list with:

    Code:
    something1: count
    something2: count
    something3: count
    
    So anything on the left (something1,2,3) can be used for the key.
  4. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    already know, can u make the top killstreak for forever?

    Example:
    Players gets 55 killstreak and he died, He'll be on rankings still with killstreak of 55 :) and question, does basicHUD can return the popup of Killrate?
  5. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    No
    Read the BasicHUD post.
  6. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    So, instead of keeping a kill-streak "forever", I added code to track a player's best kill-streak.
  7. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    thats what im talking about! THANK YOU BB
  8. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
  9. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    that crash is weird as everything is showing in a single line.
  10. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    to add back th popup scores I add basicHUd and what to do in config mssg?
    {scores}? < tell me the list of available {} :)
  11. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    I removed all text for basichud at popup and set to {count} {points}etc for test, all of it not works and the popup is not showing forever. why
  12. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    You are not configuring things properly. Did you read the documentation?
  13. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    added {score} and {money} on basic HUD 1.02? not working :/
  14. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Again, did you read the documentation?
  15. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    where sir?
  16. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    nvm, i got it :D thanks again I give u 1billion thank thank thank
  17. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    Can you make this Tops popups as Deaths? I dont know the code :)

    $pm = $plugin->getServer()->getPluginManager();

    if (($kr = $pm->getPlugin("KillRate")) !== null) {
    if (version_compare($kr->getDescription()->getVersion(),"1.1") >= 0) {
    $vars["{score}"] = $kr->getScore($player);
    $ranks = $kr->getRankings(3);
    if ($ranks == null) {
    $vars["{deaths}"] = "N/A";
    } else {
    $vars["{deaths}"] = "";
    $i = 1; $q = "";
    foreach ($ranks as $r) {
    $vars["{deaths}"] .= $q.($i++).". ".substr($r["player"],0,8).
    " ".$r["count"];
    $q = " ";
    }
    }
    }
    }




    Just rewrite it and reply to me with configured as deaths count :)

    This is the code from vars.php
  18. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
  19. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    I don't have time nor the interest for that.
  20. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    1 Request 1 help


    Request
    -to let lava scores or fall or etc when players dies, just make it last player damage in 5 seconds

    ex:player got hit by kenji and the player runs to lava, he will be mssg you were killed by Kenji and kenji will earn score for killing :)

    ex of 5 secs
    -Player got hit by kenji, player runs and survived 5 second+ so example he didnt got hit by kenji for 5 second less so player runs at lava and itll not send mssg/score for kenji and not recieve you were killed mssg for player because 5 secs passed

    Help
    -I saw best streaks in code, how to add it in sign? :)
    Last edited: Jun 12, 2015

Share This Page

Advertisement