W4F3LQ_NL 0 Opublikowano 20 kwietnia Udostępnij Opublikowano 20 kwietnia #---Skrypt na restart--- #---Made by W4F3L--- command /owlmcrestart [<text>]: permission: admin.owlmc permission message: &cNie masz uprawnien do tej komendy! trigger: # --- OPCJA STOP (Anulowanie) --- if arg 1 is "stop": if {restart::status} is true: set {restart::status} to false broadcast "&8[&6OWLMC&8] &c&lBEZPIECZNY RESTART ZOSTAL ODWOŁANY!" send title "&c&lANULOWANO" with subtitle "&7Restart nie odbedzie sie" to all players play sound "block.anvil.land" with volume 1 and pitch 1 to all players else: send "&8[&6OWLMC&8] &7Obecnie nie trwa zadne odliczanie." stop # --- START RESTARTU --- if {restart::status} is true: send "&8[&6OWLMC&8] &cOdliczanie juz trwa!" stop set {restart::status} to true set {_timer} to 60 while {_timer} > 0: if {restart::status} is false: stop # --- Wyświetlanie na ekranie (Title) --- if {_timer} > 10: send title "&6&lʙᴇᴢᴘɪᴇᴄᴢɴʏ ʀᴇsᴛᴀʀᴛ" with subtitle "&eza &c%{_timer}% &esekund" to all players # Dźwięk expa co sekundę (tonacja standardowa) play sound "entity.experience_orb.pickup" with volume 0.5 and pitch 1 to all players else: # Ostatnie 10 sekund - duża liczba send title "&c&l%{_timer}%" with subtitle "&6&lʙᴇᴢᴘɪᴇᴄᴢɴʏ ʀᴇsᴛᴀʀᴛ" to all players # Dźwięk expa co sekundę (wyższa tonacja dla efektu końcowego) play sound "entity.experience_orb.pickup" with volume 0.8 and pitch 1.5 to all players # --- Powiadomienia na czacie --- if {_timer} is 60 or 45 or 30 or 15 or 10 or 5 or 4 or 3 or 2 or 1: broadcast "&8[&6OWLMC&8] &eʙᴇᴢᴘɪᴇᴄᴢɴʏ ʀᴇsᴛᴀʀᴛ &7nastąpi za &c%{_timer}% &7sekund..." remove 1 from {_timer} wait 1 second # --- Finalizacja --- if {restart::status} is true: set {restart::status} to false send title "&c&lʀᴇsᴛᴀʀᴛᴏᴡᴀɴɪᴇ..." with subtitle "&7Zaraz wracamy!" to all players broadcast "&8[&6OWLMC&8] &4&lSerwer wykonuje teraz ʙᴇᴢᴘɪᴇᴄᴢɴʏ ʀᴇsᴛᴀʀᴛ!" play sound "ui.button.click" with volume 1 and pitch 1 to all players wait 1.5 seconds execute console command "restart" on load: set {restart::status} to false Cytuj Odnośnik do komentarza https://skript.pl/temat/59106-skrypt-na-restarty/ Udostępnij na innych stronach Więcej opcji udostępniania...
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ą.