Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #----------------#
- # OX-REGIONS #
- #----------------#
- ox-white-rg: ox-white
- ox-false-rg: ox-false
- ox-true-rg: ox-true
- #-------#
- # OTHER #
- #-------#
- question-prefix: &b&lPytanie:&f&l
- question-counting: &b&lBiałe pole zniknie za
- question-answer: &b&lPoprawna odpowiedź to
- waiting-time: 10
- #--------------------#
- # OX-MATERIALS #
- #--------------------#
- ox-white: quartz_block
- ox-false: red_wool
- ox-true: lime_wool
- command /gdev:ox [<text>="help"] [<text>] [<text>]:
- permission: gdev.ox
- permission message: &cYou can't do it!
- executable by: players and console
- aliases: /ox, /ox
- trigger:
- arg 1 is set:
- arg 1 is "help":
- send "---------------------------GDEV-OX-------------------------------"
- send "&c/ox"
- send " &chelp &8- &bshows the help (you are seeing it now)"
- send " &cquestion &8- &basks question (&aYES &bor &cNOT&b)"
- send " &cauthor &8- shows you infomations about author of this script"
- arg 1 is "question":
- arg 2 is set:
- arg 2 is "yes":
- execute console command "/rg select {@ox-white-rg}"
- send "{@question-prefix} %arg 3%" to all players
- wait {@waiting-time} parsed as integer/2 seconds
- set {_z} to (({@waiting-time} parsed as integer/2)+1)
- loop (({@waiting-time} parsed as integer/2)):
- set {_z} to ({_z} parsed as integer-1)
- send "{@question-counting} %{_z}% sekund!"
- wait 1 second
- execute console command "//set 0"
- send "{@question-answer} &c&lTAK!"
- execute console command "/rg select {@ox-false-rg}"
- execute console command "//set 0"
- wait 1 second
- execute console command "//set {@ox-false}"
- execute console command "/rg select {@ox-white-rg}"
- execute console command "//set {@ox-white}"
- arg 2 is "not":
- execute console command "/rg select {@ox-white-rg}"
- send "{@question-prefix} %arg 3%" to all players
- wait {@waiting-time} parsed as integer/2 seconds
- set {_z} to (({@waiting-time} parsed as integer/2)+1)
- loop (({@waiting-time} parsed as integer/2)):
- set {_z} to ({_z} parsed as integer-1)
- send "{@question-counting} %{_z}% sekund!"
- wait 1 second
- execute console command "//set 0"
- send "{@question-answer} &c&lNIE!"
- execute console command "/rg select {@ox-true-rg}"
- execute console command "//set 0"
- wait 1 second
- execute console command "//set {@ox-true}"
- execute console command "/rg select {@ox-white-rg}"
- execute console command "//set {@ox-white}"
- send "&cUsage: /ox %arg 1% <yes|not> <question>"
- send "&cUsage: /ox %arg 1% <yes|not> <question>"
- arg 1 is "author":
- send "&cAuthor: &aTechnicalPlay"
- send "&cSkript is created for PigCraft (minecraft server)."
- send "---------------------------GDEV-OX-------------------------------"
- send "&c/ox"
- send " &chelp &8- &bshows the help (you are seeing it now)"
- send " &cquestion &8- &basks question (&aYES &bor &cNOT&b)"
- send " &cauthor &8- shows you infomations about author of this script"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement