Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- rewardReq: 1, 5, 10, 15, 20 and 25
- rewards: 10, 1 diamond, 50, 5 diamonds, 150, 1 emerald and 500
- function checkKS(p: player):
- set {_uuid} to {_p}'s uuid
- set {_rewardReq::*} to {@rewardReq}
- set {_rewards::*} to {@rewards}
- loop {_rewardReq::*}:
- {killStreak::%{_uuid}%} = loop-value
- broadcast "%{_p}% has been awarded with %{_rewards::%loop-index%}%"
- {_rewards::%loop-index%} is a number:
- add {_rewards::%loop-index%} to {_p}'s balance
- else:
- give {_rewards::%loop-index%} to {_p}
- stop
- on death of player:
- clear {killStreak::%victim's uuid%}
- attacker is a player
- add 1 to {killStreak::%attacker's uuid%}
- checkKS(attacker)
- command killstreak [<offlineplayer>]:
- trigger:
- arg-1 is not set:
- {killStreak::%player's uuid%} is set:
- send "Your current Kill Streak is %{killStreak::%player's uuid%}%"
- else:
- send "Your current Kill Streak is 0"
- else:
- {killStreak::%arg-1's uuid%} is set:
- send "%arg-1%'s current Kill Streak is %{killStreak::%arg-1's uuid%}%"
- else:
- send "%arg-1%'s current Kill Streak is 0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement