ostatnio próbowałem napisać skrypt, ale coś mi nie wychodzi jeżeli jest taka opcja, to prosił bym bardzo o pomoc.
skrypt:
options:
title_verification: "&4&lWeryfikacja..."
title_ready: "&aGotowe!"
message_blocked: "&cSerwer jest zamknięty, więcej informacji na: &nhttps://discord.gg/bWR7YGmZkw"
variables:
{_server_status} = "otwarty"
on join:
send title "{@title_verification}" with subtitle "" for 5 seconds to player
cancel event
set player's can fly to false
set player's can use commands to false
set player's can chat to false
wait 5 seconds
if {_server_status} is "zamknięty":
kick player due to "{@message_blocked}"
else:
send title "{@title_ready}" with subtitle "" for 2 seconds to player
set player's can fly to true
set player's can use commands to true
set player's can chat to true
command /zamknij:
trigger:
set {_server_status} to "zamknięty"
broadcast "Serwer został zamknięty."
command /otworz:
trigger:
set {_server_status} to "otwarty"
broadcast "Serwer został otwarty."
logi:
[17:59:08 INFO]: Line 10: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: send title ""&4&lWeryfikacja..."" with subtitle "" for 5 seconds to player
[17:59:08 INFO]: Line: send title "{@title_verification}" with subtitle "" for 5 seconds to player
[17:59:08 INFO]:
[17:59:08 INFO]: Line 11: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: An on join event cannot be cancelled
[17:59:08 INFO]: Line: cancel event
[17:59:08 INFO]:
[17:59:08 INFO]: Line 12: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: set player's can fly to false
[17:59:08 INFO]: Line: set player's can fly to false
[17:59:08 INFO]:
[17:59:08 INFO]: Line 13: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: set player's can use commands to false
[17:59:08 INFO]: Line: set player's can use commands to false
[17:59:08 INFO]:
[17:59:08 INFO]: Line 14: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: set player's can chat to false
[17:59:08 INFO]: Line: set player's can chat to false
[17:59:08 INFO]:
[17:59:08 INFO]: Line 17: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: kick player due to ""&cSerwer jest zamknięty, więcej informacji na: &nhttps://discord.gg/bWR7YGmZkw""
[17:59:08 INFO]: Line: kick player due to "{@message_blocked}"
[17:59:08 INFO]:
[17:59:08 INFO]: Line 19: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: send title ""&aGotowe!"" with subtitle "" for 2 seconds to player
[17:59:08 INFO]: Line: send title "{@title_ready}" with subtitle "" for 2 seconds to player
[17:59:08 INFO]:
[17:59:08 INFO]: Line 20: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: set player's can fly to true
[17:59:08 INFO]: Line: set player's can fly to true
[17:59:08 INFO]:
[17:59:08 INFO]: Line 21: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: set player's can use commands to true
[17:59:08 INFO]: Line: set player's can use commands to true
[17:59:08 INFO]:
[17:59:08 INFO]: Line 22: (weryfikacja.by.samkokowalski.sk)
[17:59:08 INFO]: Can't understand this condition/effect: set player's can chat to true
[17:59:08 INFO]: Line: set player's can chat to true
[17:59:08 INFO]:
[17:59:08 INFO]: Encountered 16 errors while reloading all scripts! (260ms)
Pytanie
samkokowalski 0
Dzień dobry,
ostatnio próbowałem napisać skrypt, ale coś mi nie wychodzi jeżeli jest taka opcja, to prosił bym bardzo o pomoc.
skrypt:
options: title_verification: "&4&lWeryfikacja..." title_ready: "&aGotowe!" message_blocked: "&cSerwer jest zamknięty, więcej informacji na: &nhttps://discord.gg/bWR7YGmZkw" variables: {_server_status} = "otwarty" on join: send title "{@title_verification}" with subtitle "" for 5 seconds to player cancel event set player's can fly to false set player's can use commands to false set player's can chat to false wait 5 seconds if {_server_status} is "zamknięty": kick player due to "{@message_blocked}" else: send title "{@title_ready}" with subtitle "" for 2 seconds to player set player's can fly to true set player's can use commands to true set player's can chat to true command /zamknij: trigger: set {_server_status} to "zamknięty" broadcast "Serwer został zamknięty." command /otworz: trigger: set {_server_status} to "otwarty" broadcast "Serwer został otwarty."logi:
[17:59:08 INFO]: Line 10: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: send title ""&4&lWeryfikacja..."" with subtitle "" for 5 seconds to player [17:59:08 INFO]: Line: send title "{@title_verification}" with subtitle "" for 5 seconds to player [17:59:08 INFO]: [17:59:08 INFO]: Line 11: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: An on join event cannot be cancelled [17:59:08 INFO]: Line: cancel event [17:59:08 INFO]: [17:59:08 INFO]: Line 12: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: set player's can fly to false [17:59:08 INFO]: Line: set player's can fly to false [17:59:08 INFO]: [17:59:08 INFO]: Line 13: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: set player's can use commands to false [17:59:08 INFO]: Line: set player's can use commands to false [17:59:08 INFO]: [17:59:08 INFO]: Line 14: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: set player's can chat to false [17:59:08 INFO]: Line: set player's can chat to false [17:59:08 INFO]: [17:59:08 INFO]: Line 17: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: kick player due to ""&cSerwer jest zamknięty, więcej informacji na: &nhttps://discord.gg/bWR7YGmZkw"" [17:59:08 INFO]: Line: kick player due to "{@message_blocked}" [17:59:08 INFO]: [17:59:08 INFO]: Line 19: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: send title ""&aGotowe!"" with subtitle "" for 2 seconds to player [17:59:08 INFO]: Line: send title "{@title_ready}" with subtitle "" for 2 seconds to player [17:59:08 INFO]: [17:59:08 INFO]: Line 20: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: set player's can fly to true [17:59:08 INFO]: Line: set player's can fly to true [17:59:08 INFO]: [17:59:08 INFO]: Line 21: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: set player's can use commands to true [17:59:08 INFO]: Line: set player's can use commands to true [17:59:08 INFO]: [17:59:08 INFO]: Line 22: (weryfikacja.by.samkokowalski.sk) [17:59:08 INFO]: Can't understand this condition/effect: set player's can chat to true [17:59:08 INFO]: Line: set player's can chat to true [17:59:08 INFO]: [17:59:08 INFO]: Encountered 16 errors while reloading all scripts! (260ms)Liczę na pomoc!
Odnośnik do komentarza
https://skript.pl/temat/58437-pomoc-z-skryptem/Udostępnij na innych stronach
1 odpowiedź 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ą.