Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- word1: deadbush
- word2: tompokorny
- word3: sword
- word4: skript
- word5: skypvp
- prefix: &8»
- every 1 second:
- set {onlineplayers} to amount of players
- every 1 minute in "Lobby":
- if {onlineplayers} is greater than 1:
- stop
- set {_rn} to a random integer between 1 and 5
- if {_rn} is 1:
- broadcast "{@prefix} &7First player to type the word &7&n{@word1} &7wins &7$15!"
- set {word1active} to true
- if {_rn} is 2:
- broadcast "{@prefix} &7First player to type owner's name wins &7$15!"
- set {word2active} to true
- if {_rn} is 3:
- broadcast "{@prefix} &7First player to type the word &7&n{@word3} &7wins &7$15!"
- set {word3active} to true
- if {_rn} is 4:
- broadcast "{@prefix} &7First player to type the word &7&n{@word4} &7wins &7$15!"
- set {word3active} to true
- if {_rn} is 5:
- broadcast "{@prefix} &7First player to type the word &7&n{@word5} &7wins &7$15!"
- set {word3active} to true
- on chat:
- if {word1active} is true:
- if chat-message contains "{@word1}":
- cancel event
- broadcast "{@prefix} &7&n%player%&7 was first and won $15!"
- add 15 to player's balance
- set {word1active} to false
- stop
- if {word2active} is true:
- if chat-message contains "{@word2}":
- cancel event
- broadcast "{@prefix} &7&n%player%&7 was first and won $15!"
- add 15 to player's balance
- set {word2active} to false
- stop
- if {word3active} is true:
- if chat-message contains "{@word3}":
- cancel event
- broadcast "{@prefix} &7&n%player%&7 was first and won $15!"
- add 15 to player's balance
- set {word3active} to false
- stop
- if {word4active} is true:
- if chat-message contains "{@word4}":
- cancel event
- broadcast "{@prefix} &7&n%player%&7 was first and won $15!"
- add 15 to player's balance
- set {word4active} to false
- stop
- if {word5active} is true:
- if chat-message contains "{@word5}":
- cancel event
- broadcast "{@prefix} &7&n%player%&7 was first and won $15!"
- add 15 to player's balance
- set {word5active} to false
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement