How do I get the highest amount of numbers in a variable?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

subFN

Member
Jan 7, 2020
2
0
0
18
So I'm working on a points skript for kills, and I want a command that is /pointstop and I'm confused on how to do it. Heres me code:


Code:
on join:
    if {points.%player%} is not set:
        set {points.%player%} to 0
       
on death:
    if victim is a player:
        if attacker is a player:
            add 1 to {points.%attacker%}
            send "&eYou have been awarded &61 &epoints." to attacker
           
command /points [<player>]:
    trigger:
        if arg-1 is not set:
            send "&ePoints&7: &f%{points.%player%}%"
        if arg-1 is set:
            send "&e%arg-1%&e's Points&7: &f%{points.%arg-1%}%"
           
           
command /pointstop:
    trigger:
        ???? <------- heres where I need help
 
Not like that, I mean like collecting data type. For example: on HCF servers, there is /f top which lists the factions with the most points. I want this in this skript, but with players.
 
Status
Not open for further replies.