# ############################################################ # / - SKRIPT BY tripp#00001 # / - v.1.0.0 # / - DO NOT REDISTRIBUTE # ############################################################ options: Prefix: &cSTATS # CODE - DO NOT TOUCH UNLESS YOU 100% KNOW WHAT YOU ARE DOING # CODE - DO NOT TOUCH UNLESS YOU 100% KNOW WHAT YOU ARE DOING # CODE - DO NOT TOUCH UNLESS YOU 100% KNOW WHAT YOU ARE DOING command /stats []: aliases: kills, deaths, killstreak, kdr trigger: if arg-1 is set: send "&3&lSTATS OF %arg-1%" to player send "" to player send " &7Kills: &c%{kills::%uuid of arg-1%} ? 0%" to player send " &7Deaths: &c%{deaths::%uuid of arg-1%} ? 0%" to player send " &7Killstreak: &c%{killstreak::%uuid of arg-1%} ? 0%" to player send " &7KDR: &c%{KDR::%uuid of arg-1%} ? 0%" to player send "" else: send "&3&lYOUR STATS" to player send "" to player send " &7Kills: &c%{kills::%uuid of player%} ? 0%" to player send " &7Deaths: &c%{deaths::%uuid of player%} ? 0%" to player send " &7Killstreak: &c%{killstreak::%uuid of player%} ? 0%" to player send " &7KDR: &c%{KDR::%uuid of player%} ? 0%" to player send "" on death: if attacker is a player: if victim is a player: add 1 to {kills::%uuid of attacker%} add 1 to {deaths::%uuid of victim%} add 1 to {killstreak::%uuid of attacker%} set {KDR::%uuid of attacker%} to KDR(attacker) set {KDR::%uuid of victim%} to KDR(victim) if {killstreak::%uuid of victim%} is above 0: if {killstreak::%uuid of victim%} is above 15: broadcast "" broadcast "{@Prefix} &r&l⤔ &a%victim% &fjust lost their killstreak of &c%{killstreak::%uuid of victim%}%&f!" broadcast "" set {killstreak::%uuid of victim%} to 0 else: set {killstreak::%uuid of victim%} to 0 else: add 1 to {deaths::%uuid of victim%} set {KDR::%uuid of victim%} to KDR(victim) if {killstreak::%uuid of victim%} is above 0: if {killstreak::%uuid of victim%} is above 15: broadcast "" broadcast "{@Prefix} &r&l⤔ &a%victim% &fjust lost their killstreak of &c%{killstreak::%uuid of victim%}%&f!" broadcast "" set {killstreak::%uuid of victim%} to 0 else: set {killstreak::%uuid of victim%} to 0 function KDR(p: player) :: number: set {_u} to uuid of {_p} if {kills::%{_u}%} != 0: if {deaths::%{_u}%} != 0: return {kills::%{_u}%} / {deaths::%{_u}%} else: return {kills::%{_u}%} else: return 0 command /statsadmin [] [] []: permission: statsadmin.use aliases: /sa trigger: if arg-1 is "help": send "&8-------------------] &4&lSTATS ADMIN HELP &8[-------------------" to player send " &7/statsadmin (add/remove/set) (kills/deaths/killstreak) (player) (number)" to player send " &7/statsadmin help" to player send "&8------------------------------------------------------" to player else if arg-1 is "add": if arg-2 is "kills": add arg-4 to {kills::%uuid of arg-3%} set {KDR::%uuid of arg-3%} to KDR(arg-3) else if arg-2 is "deaths": add arg-4 to {deaths::%uuid of arg-3%} set {KDR::%uuid of arg-3%} to KDR(arg-3) else if arg-2 is "killstreak": add arg-4 to {killstreak::%uuid of arg-3%} else if arg-1 is "remove": if arg-2 is "kills": subtract arg-4 from {kills::%uuid of arg-3%} set {KDR::%uuid of arg-3%} to KDR(arg-3) else if arg-2 is "deaths": subtract arg-4 from {deaths::%uuid of arg-3%} set {KDR::%arg-3%} to KDR(arg-3) else if arg-2 is "killstreak": subtract arg-4 from {killstreak::%uuid of arg-3%} else if arg-1 is "set": if arg-2 is "kills": set {kills::%uuid of arg-3%} to arg-4 set {KDR::%uuid of arg-3%} to KDR(arg-3) else if arg-2 is "deaths": set {deaths::%uuid of arg-3%} to arg-4 set {KDR::%uuid of arg-3%} to KDR(arg-3) else if arg-2 is "killstreak": set {killstreak::%uuid of arg-3%} to arg-4