Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #========================================================================================================#
- # LICENCJA #
- #========================================================================================================#
- # ZAKAZ: #
- # * Modyfikowania treści skryptu #
- # * Przywłaszczania sobie autorstwa skryptu #
- # * Zarabiania na skrypcie #
- # * Udostepniania skryptu w swoich paczkach serwerowych #
- # * Usuwania tresci zawierajacych informacje o autorze #
- # * Podszywania sie pod autora #
- # * Udostepniania skryptu w paczkach plikow serwerowch itp #
- # * Usuwania tresci zawierajacych autora #
- # * Dopisywania wszelkich dodatków typu strona www #
- #========================================================================================================#
- # POZWOLENIA: #
- # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
- # * Dopisywanie fragmentow na wlasne potrzeby #
- #========================================================================================================#
- # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
- #========================================================================================================#
- #========================================================================================================#
- # Skrypt stworzony przez HugoZvPlayZ #
- # Nazwa: RankingZ #
- # Wersja: 0.2 #
- # Skript: 2.0.2 #
- #========================================================================================================#
- #--------------------------------------------------------------------------------------------------------#
- # WYMAGANIA #
- #--------------------------------------------------------------------------------------------------------#
- # Pluginy: #
- # ● Skript #
- #--------------------------------------------------------------------------------------------------------#
- #--------------------------------------------------------------------------------------------------------#
- # USTAWIENIA #
- #--------------------------------------------------------------------------------------------------------#
- options:
- # Tag Skryptu
- RankingZ.tag: &4&lRanking&0&lZ
- RankingZ.|: &7&l|
- # Info | Wiadomosc po smierci gracza zabitego przez gracza | Zmienne: %victim% - ofiara | %attacker% - atakujacy | %{punkty}% - punkty
- RankingZ.msg.death.player.yes: &7Gracz &a%victim% &c(-%{punkty}%) &7zostal zabity przez gracza &a%attacker% &c(+%{punkty}%)
- # Info | Wiadomosc po smierci gracza zabitego potwora | Zmienne: %victim% - ofiara | %attacker% - atakujacy | 50 - punkty
- RankingZ.msg.death.player.no: &7Gracz &a%victim% &c(-50) &7zostal zabity przez &a%attacker%
- # Info | Ranking gracza zostal zresetowany Zmienne: %argument 2% - gracz resetu
- RankingZ.msg.reset: &7Punkty, fragi i zgony gracza &a%argument 2% &7zostaly zresetowane
- # Info | Nie podales nazwy gracza
- RankingZ.msg.error.player: &4Nie podales nazwy gracza
- # Info | Brak uprawnien
- RankingZ.msg.permission: &4Nie masz uprawnien
- # Info | Reload skryptu
- RankingZ.msg.reload: &aSkrypt przeladowany pomyslnie
- #--------------------------------------------------------------------------------------------------------#
- # UPRAWNIEIA #
- #--------------------------------------------------------------------------------------------------------#
- # /RankingZ pomoc ● Pomoc ● RankingZ.gracz | RankingZ.admin #
- # /RankingZ ranking [<player>] ● Ranking ● RankingZ.gracz | RankingZ.admin #
- # /RankingZ reset <player> ● Reset punktow, fragow i zgonow ● RankingZ.admin #
- # /RankingZ info ● Informacje ● RankingZ.gracz | RankingZ.admin #
- # /RankingZ reload ● Reload ● RankingZ.admin #
- # [] - opcjonalnie | <> - wymagane #
- #--------------------------------------------------------------------------------------------------------#
- #--------------------------------------------------------------------------------------------------------#
- # KOD #
- #--------------------------------------------------------------------------------------------------------#
- on first join:
- set {RankingZ.punkty.%player%} to 1000
- set {RankingZ.fragi.%player%} to 0
- set {RankingZ.zgony.%player%} to 0
- set {RankingZ.save.%player%} to true
- on join:
- if {RankingZ.save.%player%} is false:
- set {RankingZ.punkty.%player%} to 1000
- set {RankingZ.fragi.%player%} to 0
- set {RankingZ.zgony.%player%} to 0
- set {RankingZ.save.%player%} to true
- if {RankingZ.save.%player%} is not set:
- set {RankingZ.punkty.%player%} to 1000
- set {RankingZ.fragi.%player%} to 0
- set {RankingZ.zgony.%player%} to 0
- set {RankingZ.save.%player%} to true
- on death:
- if victim is player:
- if attacker is a player:
- add {RankingZ.punkty.%victim%}*0.30 to {RankingZ.punkty.%attacker%}
- remove {RankingZ.punkty.%victim%}*0.30 from {RankingZ.punkty.%victim%}
- add {RankingZ.punkty.%victim%}*0.30 to {punkty}
- broadcast "{@RankingZ.msg.death.player.yes}"
- set {punkty} to 0
- add 1 to {RankingZ.fragi.%attacker%}
- add 1 to {RankingZ.zgony.%victim%}
- message "&7Frag: &2+1" to attacker
- message "&7Zgon: &2+1" to victim
- else:
- remove 50 from {RankingZ.punkty.%victim%}
- add 1 to {RankingZ.zgony.%victim%}
- broadcast "{@RankingZ.msg.death.player.no}"
- message "&7Zgon: &2+1" to victim
- on rightclick on player with sword:
- execute player command "RankingZ ranking %clicked player%"
- command /RankingZ [<text>] [<text>]:
- aliases: rz, ranking
- trigger:
- if argument 1 is not set:
- execute player command "RankingZ pomoc"
- if argument 1 is "pomoc":
- if player has permission "RankingZ.gracz" or "RankingZ.admin":
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- message "&e&l* &2/RankingZ pomoc &f- &7Pomoc"
- message "&e&l* &2/RankingZ ranking [<player>] &f- &7Ranking"
- message "&e&l* &2/RankingZ reset <player> &f- &7Reset punktow, fragow i zgonow"
- message "&e&l* &2/RankingZ info &f- &7Informacje"
- message "&e&l* &2/RankingZ reload &f- &7Reload"
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- else:
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
- if argument 1 is "ranking":
- if player has permission "RankingZ.gracz" or "RankingZ.admin":
- if argument 2 is set:
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- message "&e&l* &4&lGracz: &a&l%argument 2%"
- message "&e&l* &4&lPunkty: &a&l%{RankingZ.punkty.%argument 2%}%"
- message "&e&l* &4&lFragi: &a&l%{RankingZ.fragi.%argument 2%}%"
- message "&e&l* &4&lZgony: &a&l%{RankingZ.zgony.%argument 2%}%"
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- else:
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- message "&e&l* &4&lGracz: &a&l%player%"
- message "&e&l* &4&lPunkty: &a&l%{RankingZ.punkty.%player%}%"
- message "&e&l* &4&lFragi: &a&l%{RankingZ.fragi.%player%}%"
- message "&e&l* &4&lZgony: &a&l%{RankingZ.zgony.%player%}%"
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- else:
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
- if argument 1 is "reset":
- if player has permission "RankingZ.admin":
- if argument 2 is set:
- set {RankingZ.punkty.%argument 2%} to 1000
- set {RankingZ.fragi.%argument 2%} to 0
- set {RankingZ.zgony.%argument 2%} to 0
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.reset}"
- else:
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.error.player}"
- else:
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
- if argument 1 is "info":
- if player has permission "RankingZ.gracz" or "RankingZ.admin":
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- message "&e&l* &2&lSkrypt: &4&lRanking&0&lZ"
- message "&e&l* &2&lWersja: &c&l0.2"
- message "&e&l* &2&lAutor: &c&lHugoZvPlayZ"
- message "&5&l&m==================={@RankingZ.tag}&5&l&m==================="
- else:
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
- if argument 1 is "reload" or "rl":
- if player has permission "RankingZ.admin":
- execute console command "skript reload RankingZ"
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.reload}"
- else:
- message "{@RankingZ.tag} {@RankingZ.|} {@RankingZ.msg.permission}"
- #-------------------------------------------- Koniec skryptu --------------------------------------------#
- #------------------------------- © by HugoZvPlayZ - Strona: www.HvZ.ugu.pl ------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment