Solved Reward every 40 kills?

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

SpinKnight

Supporter +
Supporter
May 24, 2017
30
0
6
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
 
This would probably be the easiest:

code_language.skript:
on death:
    attacker is a player
    add 1 to {kills::%attacker%}
    if {kills::%attacker%} is divisible by 40:
        # Give reward to attacker
 
Status
Not open for further replies.