variables: {tnt} = true {fire} = true {damage} = true {bb} = true {bp} = true options: warning-tnt: &6&lUWAGA!&7 Proba wysadzenia TNT w &c%world% warning-fire: &6&lUWAGA!&7 Proba podlozenia ognia w &c%world% on Explode: if {tnt} is false: cancel event broadcast "{@warning-tnt}" stop on Ignition: if {fire} is false: cancel event broadcast "{@warning-fire}" stop on Damage: if {damage} is false: cancel event send "&4Ten swiat nie ma flagi &cPVP&4!" stop on Leftclick: if {bb} is false: cancel event send "&4Ten swiat nie ma flagi &cBLOCK BREAK&4!" stop on Rightclick: if {bp} is false: cancel event send "&4Ten swiat nie ma flagi &cBLOCK PLACE&4!" stop command /flag [] []: trigger: if arg 1 is "tnt": if arg 2 is "wlacz": if {tnt} is true: send "&e&lCuboid&8&l:&7 Ten swiat ma juz ta flage!" stop else: set {tnt} to true send "&e&lCuboid&8&l:&7 Dodano flage &cTNT&7 do tego swiata." stop if arg 2 is "wylacz": if {tnt} is false: send "&e&lCuboid&8&l:&7 Ten swiat jeszcze nie ma tej flagi!" stop else: set {tnt} to false send "&e&lCuboid&8&l:&7 Usunieto flage &cTNT&7 z tego swiata." stop if arg 1 is "fire": if arg 2 is "wlacz": if {fire} is true: send "&e&lCuboid&8&l:&7 Ten swiat ma juz ta flage!" stop else: set {fire} to true send "&e&lCuboid&8&l:&7 Dodano flage &cFIRE&7 do tego swiata." stop if arg 2 is "wylacz": if {fire} is false: send "&e&lCuboid&8&l:&7 Ten swiat jeszcze nie ma tej flagi!" stop else: set {fire} to false send "&e&lCuboid&8&l:&7 Usunieto flage &cFIRE&7 z tego swiata." stop if arg 1 is "damage": if arg 2 is "wlacz": if {damage} is true: send "&e&lCuboid&8&l:&7 Ten swiat ma juz ta flage!" stop else: set {damage} to true send "&e&lCuboid&8&l:&7 Dodano flage &cDAMAGE&7 do tego swiata." stop if arg 2 is "wylacz": if {damage} is false: send "&e&lCuboid&8&l:&7 Ten swiat jeszcze nie ma tej flagi!" stop else: set {damage} to false send "&e&lCuboid&8&l:&7 Usunieto flage &cDAMAGE&7 z tego swiata." stop if arg 1 is "block-break": if arg 2 is "wlacz": if {bb} is true: send "&e&lCuboid&8&l:&7 Ten swiat ma juz ta flage!" stop else: set {bb} to true send "&e&lCuboid&8&l:&7 Dodano flage &cBLOCK_BREAK&7 do tego swiata." stop if arg 2 is "wylacz": if {bb} is false: send "&e&lCuboid&8&l:&7 Ten swiat jeszcze nie ma tej flagi!" stop else: set {bb} to false send "&e&lCuboid&8&l:&7 Usunieto flage &cBLOCK_BREAK&7 z tego swiata." stop if arg 1 is "block-break": if arg 2 is "wlacz": if {bb} is true: send "&e&lCuboid&8&l:&7 Ten swiat ma juz ta flage!" stop else: set {bb} to true send "&e&lCuboid&8&l:&7 Dodano flage &cBLOCK_BREAK&7 do tego swiata." stop if arg 2 is "wylacz": if {bb} is false: send "&e&lCuboid&8&l:&7 Ten swiat jeszcze nie ma tej flagi!" stop else: set {bb} to false send "&e&lCuboid&8&l:&7 Usunieto flage &cBLOCK_BREAK&7 z tego swiata." stop if arg 1 is "block-place": if arg 2 is "wlacz": if {bp} is true: send "&e&lCuboid&8&l:&7 Ten swiat ma juz ta flage!" stop else: set {bp} to true send "&e&lCuboid&8&l:&7 Dodano flage &cBLOCK_PLACE&7 do tego swiata." stop if arg 2 is "wylacz": if {bp} is false: send "&e&lCuboid&8&l:&7 Ten swiat jeszcze nie ma tej flagi!" stop else: set {bp} to false send "&e&lCuboid&8&l:&7 Usunieto flage &cBLOCK_PLACE&7 z tego swiata." stop if arg 1 is "help": if arg 2 is not set: send "&c*&6 /flag " send "&7Flagi:&6 tnt, fire, damage, block-break, block-place" stop if arg 1 is "about": if arg 2 is not set: send "&8&l______________________________" send "&9&l* Skrypt napisany dla &nSkript.pl" send " " send "&7Autor:&c MrTranzistor" send "&7Wersja:&c V1.2" send "&7Wymagania:&c SkQuery, WildSkript" send "" send "&c*&7 Nastepne wersje beda publikowane na portalu" send "&7http://www.skript.pl/" send "&8&l______________________________" stop if arg 1 is not set: send "&c*&6 /flag " send "&7Flagi:&6 tnt, fire, damage, block-break, block-place" stop if arg 2 is not set: send "&c*&6 /flag " send "&7Flagi:&6 tnt, fire, damage, block-break, block-place" stop if arg 1 is not set: if arg 2 is not set: send "&c*&6 /flag " send "&7Flagi:&6 tnt, fire, damage, block-break, block-place" stop