Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # |------------------------------------------------------------|
- # | |
- # | Skrypt zrobiony |
- # | przez |
- # | Knugi |
- # | |
- # |------------------------------------------------------------|
- variables:
- {tak} = 0
- {nie} = 0
- {takk.%player%} = 0
- {niee.%player%} = 0
- command /tak:
- trigger:
- if time is larger than 18:59:
- if time is smaller than 19:31:
- if {takk.%player%} is 0:
- if {niee.%player%} is 0:
- add 1 to {tak}
- add 1 to {takk.%player%}
- add 1 to {niee.%player%}
- broadcast "&4&l%player% &2zaglosowal na dzien"
- else:
- send "&cJuz glosowales."
- else:
- send "&cJuz glosowales."
- else:
- send "<green>Nie ma glosowania"
- else:
- send "<green>Nie ma glosowania"
- command /nie:
- trigger:
- if time is larger than 18:59:
- if time is smaller than 19:31:
- if {takk.%player%} is 0:
- if {niee.%player%} is 0:
- add 1 to {nie}
- add 1 to {takk.%player%}
- add 1 to {niee.%player%}
- broadcast "&4&l%player% &2zaglosowal na noc"
- else:
- send "&cJuz glosowales."
- else:
- send "&cJuz glosowales."
- else:
- send "<green>Nie ma glosowania"
- else:
- send "<green>Nie ma glosowania"
- at 19:00:
- execute console command "/vrr"
- wait 1 second
- broadcast "&6Nadchodzi noc zaglosujcie na '/tak' zeby byl dzien lub '/nie' zeby byla dalej noc"
- broadcast "&5Macie 30 sekund"
- wait 30 seconds
- if {tak} is larger than {nie}:
- execute console command "/day"
- broadcast "&2Przewazyly glosy na Tak, wiec jest dzien!"
- execute console command "/vrr"
- if {nie} is larger than {tak}:
- broadcast "&2Przewazyly glosy na nie, wiec jest noc!"
- execute console command "/vrr"
- command /vrr:
- trigger:
- set {takk.%player%} to 0
- set {niee.%player%} to 0
- set {tak} to 0
- set {nie} to 0
Advertisement
Add Comment
Please, Sign In to add comment