Przepraszam za kolejny temat, ale uważam, że to powinno się tutaj znaleźć:
Witam otóż mam sobie kod na ox i chciałbym, żeby gracze byli niewidizalni przy zadaniu pytania aż do poprawnej odpowiedzi:
command /ox [<text>] [<text>]:
trigger:
if arg 1 is "tak":
if arg 2 is set:
if player has permission "ox.pytt":
broadcast "[&2OX&f] &6&lPytanie : &b&l%arg 2%"
wait 1 second
hide all players
broadcast "[&2OX&f] &aBiale Pole zniknie za 15 sekund"
wait 10 real seconds
execute player command "region select biale"
broadcast "[&2OX&f] &aBiale Pole zniknie za 5 Sekund"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 4 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 3 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 2 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 1 Sekunde"
wait 1 second
execute player command "//set 0"
wait 2 second
broadcast "[&2OX&f] &cPoprawna odpowiedz to &aTAK"
wait 1 second
reveal all players
execute player command "region select nie"
wait 1 second
execute player command "//set 0"
wait 2 second
execute player command "region select biale"
execute player command "//set 35"
execute player command "region select nie"
execute player command "//set 35:14"
wait 5 seconds
stop
else:
send "&cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe this is in error."
stop
if arg 1 is "nie":
if arg 2 is set:
if player has permission "ox.pytn":
broadcast "[&2OX&f] &6&lPytanie : &b&l%arg 2%"
wait 1 second
hide all players
broadcast "[&2OX&f] &aBiale Pole zniknie za 15 sekund"
wait 10 real seconds
execute player command "region select biale"
broadcast "[&2OX&f] &aBiale Pole zniknie za 5 Sekund"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 4 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 3 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 2 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBiale Pole zniknie za 1 Sekunde"
wait 1 second
execute player command "//set 0"
wait 2 second
broadcast "[&2OX&f] &cPoprawna odpowiedz to &aNIE"
wait 1 second
reveal all players
execute player command "region select tak"
wait 1 second
execute player command "//set 0"
wait 2 second
execute player command "region select biale"
execute player command "//set 35"
execute player command "region select tak"
execute player command "//set 35:5"
wait 5 seconds
stop
else:
send "&cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe this is in error."
stop
if arg 1 is "start":
if arg 2 is not set:
if player has permission "ox.start":
execute player command "region select widz"
broadcast "[&2OX&f] &aBlokada zniknie za 5 Sekund"
wait 1 second
broadcast "[&2OX&f] &aBlokada zniknie za 4 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBlokada zniknie za 3 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBlokada zniknie za 2 Sekundy"
wait 1 second
broadcast "[&2OX&f] &aBlokada zniknie za 1 Sekunde"
wait 2 second
broadcast "[&2OX&f] &6&lZaczynamy!"
execute player command "//set 0"
wait 10 second
execute player command "//set 95"
stop
else:
send "&cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe this is in error."
stop
Nie chodzi o spacje. Tak mi się teraz wkleilo xd