Rewards for killing players with more play time

  • 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!

Tylerr

Member
Nov 16, 2019
2
0
0
23
I want players to get money for killing other players in my hardcore server, and the players with more playtime to be worth more.

on death of player:
attacker is a player
add 10 to attacker's balance

That simple script would give $10 for each kill, but I wouldn't know how to reward varying levels of money for killing the people with the most play time.

Thanks.
 
This might work

Code:
Every 1 second:
    add 1 to {_playtime.%player%::*}

On kill player:
        if {_playtime.%player%::*} of the targeted player is greater than 9:
            make console execute the command "<economy command>"