Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skript by Fleft
- #PM me at /u/flooft with any issues
- #Feel free to change the pre-fix and skript to your liking
- variables:
- {prewlPrefix} = &8[&rPre-WL&8]&9
- command /prewl:
- permission: skript.op
- trigger:
- set {pwlnum} to a random integer between 1 and 100
- set {pwl} to true
- wait 1 second
- message "%{prewlPrefix}% The random number is %{pwlnum}%!" to the player
- broadcast "%{prewlPrefix} %Guess a random number 1-100 for a pre-whitelist!"
- loop all players:
- set {isPreWL.%player%} to false
- on chat:
- {pwl} is true:
- message contains "%{pwlnum}%":
- broadcast "%{prewlPrefix}% %player% has guessed the number %{pwlnum}%!"
- set {isPreWL.%player%} to true
- execute console command "/whitelist add %player%"
- set {pwl} to false
- wait 1 second
- message "%{prewlPrefix}% Join back when all players are kicked!" to the player
- wait 3 seconds
- execute console command "/whitelist on"
- wait 1 second
- execute console command "/kickall Join back when the game opens!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement