Mam problem otóż napisałem sobie prosty skrypt ,lecz nie wiem jak zrobić że jak jest /ox start to teleportuje najpierw na arene ox a później na widownie jeżeli skończył sie czas na dołączenie.
command /ox [<text>] [<text>]:
permission: ox.admin
permission message: &cBrak Uprawnień
trigger:
if arg 1 is not set:
send ""
send "&a&lOX &7/&cox &7<&ctak&7/&cnie&7> &7<&cpytanie&7>"
send ""
if arg 1 is "tak":
broadcast "&7Pytanie : &c%arg 2%"
wait 2 second
broadcast "&7Na wybranie pola masz 5 sekund"
wait 2 second
broadcast "&73"
wait 1 second
broadcast "&72"
wait 1 second
broadcast "&71"
execute player command "/rg select sciana"
execute player command "//set 166"
execute player command "/rg select nie"
execute player command "//set 0"
wait 1 second
broadcast "&a&lPoprawna odpowiedź &2&lTak"
execute player command "//set 35:14"
execute player command "/rg select sciana"
execute player command "//set 0"
if arg 1 is "nie":
broadcast "&7Pytanie : &c%arg 2%"
wait 2 second
broadcast "&7Na wybranie pola masz 5 sekund"
wait 2 second
broadcast "&73"
wait 1 second
broadcast "&72"
wait 1 second
broadcast "&71"
execute player command "/rg select sciana"
execute player command "//set 166"
execute player command "/rg select tak"
execute player command "//set 0"
wait 1 second
broadcast "&a&lPoprawna odpowiedź &2&lNie"
execute player command "//set 35:5"
execute player command "/rg select sciana"
execute player command "//set 0"
if arg 1 is "start":
set {ox1} to true
broadcast "&eOx wystartuje za 5 sekund wpisz /dolacz by dolaczyc"
wait 2 second
broadcast "&aKoniec zapisów za &73"
broadcast "&73"
broadcast "&72"
broadcast "&71"
set {ox1} to false
command /dolacz:
trigger:
if {ox1} is true:
teleport player to {ox}
if {ox1} is false:
teleport player to {ox1}
on step on water:
player is in "ox"
if player is in region "tak":
teleport player to {spawn}
command /ustawspawn:
permission: ox.admin
permission message: &cBrak uprawnien!
trigger:
set {spawn} to location of player
send "&aUstawiles spawn na koordach: &e%{spawn}%&a!"
command /ustawox:
permission: ox.admin
permission message: &cBrak uprawnien!
trigger:
set {ox} to location of player
send "&aUstawiles spawn na koordach: &e%{ox}%&a!"
command /ustawox1:
permission: ox.admin
permission message: &cBrak uprawnien!
trigger:
set {ox1} to location of player
send "&aUstawiles spawn na koordach: &e%{ox}%&a!"
Pytanie
azvar 0
Mam problem otóż napisałem sobie prosty skrypt ,lecz nie wiem jak zrobić że jak jest /ox start to teleportuje najpierw na arene ox a później na widownie jeżeli skończył sie czas na dołączenie.
command /ox [<text>] [<text>]:
permission: ox.admin
permission message: &cBrak Uprawnień
trigger:
if arg 1 is not set:
send ""
send "&a&lOX &7/&cox &7<&ctak&7/&cnie&7> &7<&cpytanie&7>"
send ""
if arg 1 is "tak":
broadcast "&7Pytanie : &c%arg 2%"
wait 2 second
broadcast "&7Na wybranie pola masz 5 sekund"
wait 2 second
broadcast "&73"
wait 1 second
broadcast "&72"
wait 1 second
broadcast "&71"
execute player command "/rg select sciana"
execute player command "//set 166"
execute player command "/rg select nie"
execute player command "//set 0"
wait 1 second
broadcast "&a&lPoprawna odpowiedź &2&lTak"
execute player command "//set 35:14"
execute player command "/rg select sciana"
execute player command "//set 0"
if arg 1 is "nie":
broadcast "&7Pytanie : &c%arg 2%"
wait 2 second
broadcast "&7Na wybranie pola masz 5 sekund"
wait 2 second
broadcast "&73"
wait 1 second
broadcast "&72"
wait 1 second
broadcast "&71"
execute player command "/rg select sciana"
execute player command "//set 166"
execute player command "/rg select tak"
execute player command "//set 0"
wait 1 second
broadcast "&a&lPoprawna odpowiedź &2&lNie"
execute player command "//set 35:5"
execute player command "/rg select sciana"
execute player command "//set 0"
if arg 1 is "start":
set {ox1} to true
broadcast "&eOx wystartuje za 5 sekund wpisz /dolacz by dolaczyc"
wait 2 second
broadcast "&aKoniec zapisów za &73"
broadcast "&73"
broadcast "&72"
broadcast "&71"
set {ox1} to false
command /dolacz:
trigger:
if {ox1} is true:
teleport player to {ox}
if {ox1} is false:
teleport player to {ox1}
on step on water:
player is in "ox"
if player is in region "tak":
teleport player to {spawn}
command /ustawspawn:
permission: ox.admin
permission message: &cBrak uprawnien!
trigger:
set {spawn} to location of player
send "&aUstawiles spawn na koordach: &e%{spawn}%&a!"
command /ustawox:
permission: ox.admin
permission message: &cBrak uprawnien!
trigger:
set {ox} to location of player
send "&aUstawiles spawn na koordach: &e%{ox}%&a!"
command /ustawox1:
Edytowane przez azvarpermission: ox.admin
permission message: &cBrak uprawnien!
trigger:
set {ox1} to location of player
send "&aUstawiles spawn na koordach: &e%{ox}%&a!"
Literówka
Odnośnik do komentarza
Udostępnij na innych stronach
0 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ą.