Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {r.%player%} = 1000
- {z.%player%} = 0
- {s.%player%} = 0
- on rightclick on player:
- player is sneaking:
- send ""
- send "&cRanking: &f%{r.%clicked player%}%"
- send "&cZabojstwa: &f%{z.%clicked player%}%"
- send "&cSmierci: &f%{s.%clicked player%}%"
- on death of player:
- attacker is player
- set {_x} to {r.%victim%}*0.05
- set {r.%attacker%} to {r.%attacker%}+{_x}
- set {r.%victim%} to {r.%victim%}-{_x}
- add 1 to {z.%attacker%}
- add 1 to {s.%victim%}
- display scoreboard named "&6Statystyki" to attacker
- make score of "&aRanking" in scoreboard of attacker to {r.%attacker%}
- make score of "&aZabojstwa" in scoreboard of attacker to {z.%attacker%}
- make score of "&aSmierci" in scoreboard of attacker to {s.%attacker%}
- move display of attacker to sidebar
- display scoreboard named "&6Statystyki" to victim
- make score of "&aRanking" in scoreboard of victim to {r.%victim%}
- make score of "&aZabojstwa" in scoreboard of victim to {z.%victim%}
- make score of "&aSmierci" in scoreboard of victim to {s.%victim%}
- move display of victim to sidebar
- broadcast "&cGracz &6%victim% &czostal zabity przez &6%attacker%&c. &6(%{_x}%)"
- on join:
- display scoreboard named "&6Statystyki" to player
- make score of "&aRanking" in scoreboard of player to {r.%player%}
- make score of "&aZabojstwa" in scoreboard of player to {z.%player%}
- make score of "&aSmierci" in scoreboard of player to {s.%player%}
- move display of player to sidebar
- command /admin [<text>] [<player>] [<number>]:
- trigger:
- arg 1 is not set:
- send "&c/admin ranking <nick> <ilosc> - ustaw ranking"
- send "&c/admin zabojstwa <nick> <liczba> - ustaw liczbe zabojstw"
- send "&c/admin smierci <nick> <liczba> - ustaw liczbe smierci"
- stop
- player has permission "sk.ranking":
- arg 1 is "ranking" or "zabojstwa" or "smierci":
- arg 1 is "ranking":
- arg 2 is set:
- arg 3 is set:
- set {r.%arg 2%} to arg 3
- execute arg 2 command "ss"
- else:
- send "Podaj ilosc"
- else:
- send "Podaj nick"
- arg 1 is "zabojstwa":
- arg 2 is set:
- arg 3 is set:
- set {z.%arg 2%} to arg 3
- execute arg 2 command "ss"
- else:
- send "Podaj ilosc"
- else:
- send "Podaj nick"
- arg 1 is "smierci":
- arg 2 is set:
- arg 3 is set:
- set {s.%arg 2%} to arg 3
- execute arg 2 command "ss"
- else:
- send "Podaj ilosc"
- else:
- send "Podaj nick"
- else:
- send "&cranking/zabojstwa/smierci"
- else:
- send "&cNie masz uprawnien do tej komendy."
- on command:
- command is "ss":
- cancel event
- wait 2 ticks
- display scoreboard named "&6Statystyki" to player
- make score of "&aRanking" in scoreboard of player to {r.%player%}
- make score of "&aZabojstwa" in scoreboard of player to {z.%player%}
- make score of "&aSmierci" in scoreboard of player to {s.%player%}
- move display of player to sidebar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement