options: #==================================# # Zakaz podszywania sie pod autora # # Zakaz zarabiania na skrypcie # # Skript By DePixel # #==================================# # Odleglość linijek hologramów. # distance: 0.25 # # # #==================================# on load: if {czas} is not set: set {czas} to 60 send "[&cDeathHolo&f] &2 Poprawnie ustawiono czas." to all ops and console if file "plugins\DeathHologram\config.yml" doesn't exists: create file "plugins\DeathHologram\config.yml" download from "http://pastebin.com/raw.php?i=A42yp24L" to "plugins\DeathHologram\config.yml" else: clear {fall} clear {zombie} clear {skeleton} clear {spider} clear {lava} clear {suffocation} clear {water} set {fall} to value "msg.fall" get of "plugins\DeathHologram\config.yml" if {fall} is not set: set {fall} to "&4BRAK" set {zombie} to value "msg.zombie" get of "plugins\DeathHologram\config.yml" if {zombie} is not set: set {zombie} to "&4BRAK" set {skeleton} to value "msg.skeleton" get of "plugins\DeathHologram\config.yml" if {skeleton} is not set: set {skeleton} to "&4BRAK" set {spider} to value "msg.spider" get of "plugins\DeathHologram\config.yml" if {spider} is not set: set {spider} to "&4BRAK" set {lava} to value "msg.lava" get of "plugins\DeathHologram\config.yml" if {lava} is not set: set {lava} to "&4BRAK" set {suffocation} to value "msg.suffocation" get of "plugins\DeathHologram\config.yml" if {suffocation} is not set: set {suffocation} to "&4BRAK" set {water} to value "msg.water" get of "plugins\DeathHologram\config.yml" if {water} is not set: set {water} to "&4BRAK" command /deathholo : aliases: dh trigger: if arg 1 is "help": loop 15 times: send "" send "&2===========================" send json of "&cKliknij na mnie aby zmienić czas" tooltip "&a/deathholoset %nl%&fCzas podajemy w &cSekundach%nl%Kliknij aby wykonac komende" suggest "/deathholoset " to the player send "&2===========================" send json of "&cKliknij aby przeladowac skrypt" tooltip "Komende mozesz wykonac jedynie majac uprawnienia!" run "/sk reload %script%" to the player send "&2===========================" send json of "&cLista Wiadomosci" run "/dh list" to the player send "&2===========================" send json of "&cKliknij " then "&c&nTutaj&f " run "/deathholo autor" tooltip "&2Tak%NL%&aTutaj :)" then "&cAby poznac autora :3" to the player if arg is "autor": loop 15 times: send "" send json of "&aAutorem jest &6DePixel &c(&aKliknij aby zobaczyc moj profil &aSkript.PL&c)" open "http://skript.pl/index.php/user/460-depixel/" to the player send json of "&aLub kliknij tutaj jezeli podoba ci sie skrypt" run "Kocham Pixel'a <3" to the player send json of " Powrót" run "/dh" to the player if arg is "list": loop 15 times: send "" send "&c Lista wiadomosci:" send "&7Upadek: %{fall}%" send "&7Zombie: %{zombie}%" send "&7Szkielet: %{skeleton}%" send "&7Pajak: %{spider}%" send "&7Lava: %{lava}%" send "&7Utkniecie: %{suffocation}%" send "&7Utonicie: %{water}%" send json of " Powrót" run "/dh" to the player command /deathholoset : aliases: dhhs trigger: if arg is not integer: send "&aPoprawnie użycie /&3dhhs " else: if arg is greater than 0: set {czas} to arg send "&aPoprawnie ustawiono czas: &7 %{czas}% sec." stop if arg is smaller than 0: send "&4ERROR:&c Nie możesz podawać liczb ujemnych" stop on death of player: set {_hologramy.%victim%} to location of victim wait 5 second remove {@distance} from y-coordinates of {_hologramy.%victim%} if damage cause is fall: display hologram "&aGracz &3 %victim% &a Umarł tutaj o" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&c%now%" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&7Przyczyna: %{fall}%" at {_hologramy.%victim%} for {czas} seconds stop if attacker is a zombie: broadcast "Lool" display hologram "&aGracz &3 %victim% &a Umarł tutaj o" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&c%now%" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&7Przyczyna: %{zombie}%" at {_hologramy.%victim%} for {czas} seconds stop if attacker is a skeleton: display hologram "&aGracz &3 %victim% &a Umarł tutaj o" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&c%now%" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&7Przyczyna: %{skeleton}%" at {_hologramy.%victim%} for {czas} seconds stop if attacker is a spider: display hologram "&7Przyczyna: %{spider}%" at {_hologramy.%victim%} for {czas} seconds stop if damage cause is lava: loop blocks upwards {_hologramy.%victim%}: loop-block is lava: block upwards loop-block is air: set {_b} to location of loop-block add {@distance} to y-coordinates of {_b} display hologram "&aGracz &3 %victim% &a Umarł tutaj o" at {_b} for {czas} seconds remove {@distance} from y-coordinates of {_b} display hologram "&c%now%" at {_b} for {czas} seconds remove {@distance} from y-coordinates of {_b} display hologram "&7Przyczyna: %{lava}%" at {_b} for {czas} seconds stop if damage cause is suffocation: loop blocks upwards {_hologramy.%victim%}: loop-block is not air: block upwards loop-block is air: set {_b} to location of loop-block add {@distance} to y-coordinates of {_b} display hologram "&aGracz &3 %victim% &a Umarł tutaj o" at {_b} for {czas} seconds remove {@distance} from y-coordinates of {_b} display hologram "&c%now%" at {_b} for {czas} seconds remove {@distance} from y-coordinates of {_b} display hologram "&7Przyczyna: %{suffocation}%" at {_b} for {czas} seconds stop if damage cause is drowning: loop blocks upwards {_hologramy.%victim%}: loop-block is water: block upwards loop-block is air: set {_b} to location of loop-block add {@distance} to y-coordinates of {_b} display hologram "&aGracz &3 %victim% &a Umarł tutaj o" at {_b} for {czas} seconds remove {@distance} from y-coordinates of {_b} display hologram "&c%now%" at {_b} for {czas} seconds remove {@distance} from y-coordinates of {_b} display hologram "&7Przyczyna: %{water}%" at {_b} for {czas} seconds stop if attacker is a player: display hologram "&aGracz &3 %victim% &a Umarl tutaj o" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&c%now%" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&7Zabójca: &c%attacker%" at {_hologramy.%victim%} for {czas} seconds stop if attacker is not entity: display hologram "&aGracz &3 %victim% &a Umarl tutaj o" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&c%now%" at {_hologramy.%victim%} for {czas} seconds remove {@distance} from y-coordinates of {_hologramy.%victim%} display hologram "&7Przyczyna: &c Nieznana" at {_hologramy.%victim%} for {czas} seconds stop