Advertisement
fleft17

Untitled

May 10th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #Skript by Fleft
  2. #PM me at /u/flooft with any issues
  3. #Feel free to change the pre-fix and skript to your liking
  4.  
  5.  
  6. variables:
  7. {prewlPrefix} = &8[&rPre-WL&8]&9
  8.  
  9.  
  10. command /prewl:
  11. permission: skript.op
  12. trigger:
  13. set {pwlnum} to a random integer between 1 and 100
  14. set {pwl} to true
  15. wait 1 second
  16. message "%{prewlPrefix}% The random number is %{pwlnum}%!" to the player
  17. broadcast "%{prewlPrefix} %Guess a random number 1-100 for a pre-whitelist!"
  18. loop all players:
  19. set {isPreWL.%player%} to false
  20.  
  21. on chat:
  22. {pwl} is true:
  23. message contains "%{pwlnum}%":
  24. broadcast "%{prewlPrefix}% %player% has guessed the number %{pwlnum}%!"
  25. set {isPreWL.%player%} to true
  26. execute console command "/whitelist add %player%"
  27. set {pwl} to false
  28. wait 1 second
  29. message "%{prewlPrefix}% Join back when all players are kicked!" to the player
  30. wait 3 seconds
  31. execute console command "/whitelist on"
  32. wait 1 second
  33. execute console command "/kickall Join back when the game opens!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement