command /pytanie [] []: permission: pytanie.* permission message: &cNie masz uprawnien! trigger: if arg 1 is not set: send "&cPoprawne uzycie: &6/pytanie [odpowiedz/usun/spam] [pytanie]" if arg 1 is "spam": if {event} is true: broadcast "&7[&6PYTANIE&7] %{spam}%" else: send "&cEvent nie trwa!" if arg 1 is "usun": if {event} is true: set {event} to false clear {odpowiedz} broadcast "&7[&6PYTANIE&7] Event zostal anulowany!" else: send "&cEvent nie trwa!" stop if arg 1 is not "spam" or "usun": if arg 2 is set: if {event} is false: set {event} to true set {odpowiedz} to arg 1 if coloured arg 2 contains "?": broadcast "&7[&6PYTANIE&7] %coloured arg 2%" set {spam} to "%coloured arg 2%" else: broadcast "&7[&6PYTANIE&7] %coloured arg 2%?" set {spam} to "%coloured arg 2%?" stop else: send "&cEvent juz trwa! Uzyj: &6/pytanie spam&c." else: send "&cPoprawne uzycie: &6/pytanie [odpowiedz/usun/spam] [pytanie]" stop on chat: if {event} is true: if message contains {odpowiedz}: cancel event broadcast "&7Gracz: &6%player% &7znal odpowiedz na pytanie i wygral: &664 diamenty! &6(&7%{odpowiedz}%&6)" set {event} to false clear {odpowiedz} give player 64 diamonds send "&7Gratulacje! Odpowiedziales jako pierwszy prawidlowo na odpowiedz i wygrales: &664 diamenty&7!" else: send "&cOdpowiedz bledna! Sprobuj ponowanie!"