Wariat25 0 Opublikowano 25 lutego 2020 Udostępnij Opublikowano 25 lutego 2020 Witam, prosze o dodanie odliczania w moim skrypcie na teleportacje mianowicie problem jest taki ze chcialbym zeby odliczalo czas teleportacji caly skrypt: chcialbym żeby ktos zrobil cos takiego: send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c((((CZAS)))) &7sekund" for 1 seconds Prosze o zamiane (((((CZAS))))) na zmienną ktora jest od odliczania, dziekuje i pozdrawiam dla osoby ktora pomoze like + najlepsze Cytuj Odnośnik do komentarza https://skript.pl/temat/37226-dodanie-odliczania/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 bludis 418 Opublikowano 25 lutego 2020 Udostępnij Opublikowano 25 lutego 2020 set {_time} to 5 while {_time} > 0: send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c%{_time}% &7sekund" for 1 seconds wait 1 second Cytuj Odnośnik do komentarza https://skript.pl/temat/37226-dodanie-odliczania/#findComment-236983 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Wariat25 0 Opublikowano 25 lutego 2020 Autor Udostępnij Opublikowano 25 lutego 2020 8 godzin temu, LjayPL789 napisał: set {_time} to 5 while {_time} > 0: send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c%{_time}% &7sekund" for 1 seconds wait 1 second Ale nie wiem wlasnie gdzie to dokladnie umiescic moglbys to zrobic za mnie? Cytuj Odnośnik do komentarza https://skript.pl/temat/37226-dodanie-odliczania/#findComment-236998 Udostępnij na innych stronach Więcej opcji udostępniania...
0 xAxee 1968 Opublikowano 25 lutego 2020 Udostępnij Opublikowano 25 lutego 2020 Godzinę temu, Wariat25 napisał: Ale nie wiem wlasnie gdzie to dokladnie umiescic moglbys to zrobic za mnie? zobacz czy wszystko poprawione on quit: clear {tpa::%player%} command /tpa [<offlineplayer>]: trigger: if arg is offline: send "&4Blad: &cGracz jest offline albo nie istnieje!" stop if arg is not set: send "&4Blad: &cPoprawne uzycie: tpa player" stop if name of arg is name of player: send "&4Blad: &cNie mozesz teleportowac sie do samego siebie!" stop set {tpa::%arg%} to player send "&8» &6%player% &7prosi o teleportacje do ciebie" to arg send "&8» &7Aby zaakceptowac teleportacje wpisz &6/tpaccept" to arg send "&8» &7Aby odrzucic teleportacje wpisz &6/tpdeny" to arg send "&8» &7Wyslales prosbe o teleportacje do &6%arg%" command /tpaccept [<offlineplayer>]: trigger: if {tpa::%player%} is not set: send "&4Blad: &cNie masz prosby o teleportacje" stop clear {tpa::%player%} set {_l} to arg's location set {_s} to 0 while distance between arg's location and {_l} <= 0.2: send arg title "&6Teleportacja" with subtitle "&a%5-{_s}% &7sekund" add 1 to {_s} if {_s} >= 6: send arg title "&6Teleportacja" with subtitle "&aTeleportacja" send "&7Teleportacja gracza..." teleport arg to player stop wait 1 second send "&7Poruszyles sie! przerwano teleport!" to arg send "&7Gracz sie poruszyl! przerwano teleport!" send arg title "&6Teleportacja" with subtitle "&cPrzerwano!" command /tpdeny [<offlineplayer>]: trigger: if {tpa::%player%} is not set: send "&4Blad: &cNie masz prosby o teleportacje" stop send "&8» &7Teleportacja zostala odrzucona" to {tpa::%player%} send "&8» &7Odrzuciles prosbe teleportacji od &6%{tpa::%player%}%" clear {tpa::%player%} Cytuj Odnośnik do komentarza https://skript.pl/temat/37226-dodanie-odliczania/#findComment-237006 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Wariat25 0 Opublikowano 25 lutego 2020 Autor Udostępnij Opublikowano 25 lutego 2020 5 godzin temu, xAxee napisał: zobacz czy wszystko poprawione on quit: clear {tpa::%player%} command /tpa [<offlineplayer>]: trigger: if arg is offline: send "&4Blad: &cGracz jest offline albo nie istnieje!" stop if arg is not set: send "&4Blad: &cPoprawne uzycie: tpa player" stop if name of arg is name of player: send "&4Blad: &cNie mozesz teleportowac sie do samego siebie!" stop set {tpa::%arg%} to player send "&8» &6%player% &7prosi o teleportacje do ciebie" to arg send "&8» &7Aby zaakceptowac teleportacje wpisz &6/tpaccept" to arg send "&8» &7Aby odrzucic teleportacje wpisz &6/tpdeny" to arg send "&8» &7Wyslales prosbe o teleportacje do &6%arg%" command /tpaccept [<offlineplayer>]: trigger: if {tpa::%player%} is not set: send "&4Blad: &cNie masz prosby o teleportacje" stop clear {tpa::%player%} set {_l} to arg's location set {_s} to 0 while distance between arg's location and {_l} <= 0.2: send arg title "&6Teleportacja" with subtitle "&a%5-{_s}% &7sekund" add 1 to {_s} if {_s} >= 6: send arg title "&6Teleportacja" with subtitle "&aTeleportacja" send "&7Teleportacja gracza..." teleport arg to player stop wait 1 second send "&7Poruszyles sie! przerwano teleport!" to arg send "&7Gracz sie poruszyl! przerwano teleport!" send arg title "&6Teleportacja" with subtitle "&cPrzerwano!" command /tpdeny [<offlineplayer>]: trigger: if {tpa::%player%} is not set: send "&4Blad: &cNie masz prosby o teleportacje" stop send "&8» &7Teleportacja zostala odrzucona" to {tpa::%player%} send "&8» &7Odrzuciles prosbe teleportacji od &6%{tpa::%player%}%" clear {tpa::%player%} zbugowane, zrobilem tak mysle ze moze być ale mozesz ocenić command /tpaccept [<text>]: trigger: if {tpa::%player%::sendAsk} is set: set {_p} to {tpa::%player%::sendAsk} set {_p} to {_p} parsed as offlineplayer if {_p} is online: send "&8» &6%player% &7zaakceptowal twoja teleportacje" to {_p} send "&8» &7Teleportacja za &610&7 sekund nie, ruszaj sie" to {_p} send "&8» &7Zaakceptowales prosbe o teleportacje od &6%{_p}%" clear {tpa::%{_p}%::toTeleport} clear {tpa::%player%::toTeleport} clear {tpa::%{_p}%::sendAsk} clear {tpa::%player%::sendAsk} set {_x} to x-location of {_p} set {_y} to y-location of {_p} set {_z} to z-location of {_p} set {_s} to 5 loop 5 times: send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c%{_s}% &7sekund" for 1 seconds remove 1 from {_s} if difference between x-location of {_p} and {_x} is larger than 0.5: send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds stop if difference between y-location of {_p} and {_y} is larger than 0.5: send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds stop if difference between z-location of {_p} and {_z} is larger than 0.5: send {_p} title "&2&lTeleportacja" with subtitle "&7Teleport przerwany" for 1 seconds stop wait 1 second teleport {_p} to player send player title "&2&lTeleportaja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds stop clear {_s} send {_p} title "&2&lTeleportacja" with subtitle "&7Teleportacja przebiegla pomyslnie" for 1 seconds clear {tpa::%{_p}%::toTeleport} clear {tpa::%player%::toTeleport} clear {tpa::%{_p}%::sendAsk} clear {tpa::%player%::sendAsk} send "&4Blad: &cNie masz prosby o teleportacje" stop send "&4Blad: &cNie masz prosby o teleportacje" Cytuj Odnośnik do komentarza https://skript.pl/temat/37226-dodanie-odliczania/#findComment-237019 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Wariat25 0 Opublikowano 26 lutego 2020 Autor Udostępnij Opublikowano 26 lutego 2020 prosze o dodanie ze po 30 sekundach tp automatycznie wygasa Cytuj Odnośnik do komentarza https://skript.pl/temat/37226-dodanie-odliczania/#findComment-237023 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
Wariat25 0
Witam, prosze o dodanie odliczania w moim skrypcie na teleportacje mianowicie problem jest taki ze chcialbym zeby odliczalo czas teleportacji
caly skrypt:
chcialbym żeby ktos zrobil cos takiego:
send {_p} title "&2&lTELEPORTACJA" with subtitle "&7Teleportacja nastapi za: &c((((CZAS)))) &7sekund" for 1 secondsProsze o zamiane (((((CZAS))))) na zmienną ktora jest od odliczania, dziekuje i pozdrawiam dla osoby ktora pomoze like + najlepsze
Odnośnik do komentarza
https://skript.pl/temat/37226-dodanie-odliczania/Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.