1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Solved Reward every 40 kills?

Discussion in 'Skript' started by SpinKnight, Feb 24, 2018.

Thread Status:
Not open for further replies.
  1. SpinKnight

    Supporter + Supporter

    Joined:
    May 24, 2017
    Messages:
    30
    Likes Received:
    0
    I was wondering if it was possible to give a reward every like 40 kills, just like money or something.

    And by not doing like :
    if {killtest.%player%} is "40" and "80" and so on...

    I was wondering if there was an easier way, if its just the same reward every 40 kills.



    SpinKnight
     
  2. Gladrian

    Gladrian Member

    Joined:
    Feb 20, 2017
    Messages:
    41
    Likes Received:
    3
    This would probably be the easiest:

    Code (Skript):
    1. on death:
    2.     attacker is a player
    3.     add 1 to {kills::%attacker%}
    4.     if {kills::%attacker%} is divisible by 40:
    5.         # Give reward to attacker
     
Thread Status:
Not open for further replies.

Share This Page

Loading...