Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # counts kills per life and in total
- # idea by Tisra
- variables:
- {kill counter.%player%.kills_session} = 0
- {kill counter.%player%.kills_session_max} = 0
- {kill counter.%player%.kills_total} = 0
- {kill counter.%player%.kit_points} = 1.00
- on death:
- attacker is a player
- add 0.25 to {kill counter.%player%.kit_points}
- add 1 to {kill counter.%attacker%.kills_total}
- add 1 to {kill counter.%attacker%.kills_session}
- {kill counter.%attacker%.kills_session} is greater than {kill counter.%attacker%.kills_session_max}:
- set {kill counter.%attacker%.kills_session_max} to {kill counter.%attacker%.kills_session}
- on death of player:
- set {kill counter.%player%.kills_session} to 0
- on death of player:
- attacker is a player
- add 1 to {kill counter.%player%.kit_points}
- command /kills:
- executable by: players
- trigger:
- message "You have killed %{kill counter.%player%.kills_session}% in this life!"
- message "Your maximum kill streak is %{kill counter.%player%.kills_session_max}%"
- message "You have killed %{kill counter.%player%.kills_total}% in total!"
- command /kitpoints:
- executable by: players
- trigger:
- message "You have %{kill counter.%player%.kit_points}% kit points!"
- command /freekit <kit>
- executable by: players
- trigger:
- {kill counter.%player%.kit_points} is less than 1:
- message "You don't have enought kit points!"
- exit
- message "You just used your kit points to get a kit!"
- make player execute command "/kit %arg 1%"
- add -1 to {kill counter.%player%.kit_points}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement