Guest User

Untitled

a guest
Mar 29th, 2015
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. command /sd <integer> <number> <integer> <number> <world>:
  2. usage: /sd <radius> <x center> <y center> <z center> <world>
  3. aliases: /suddendeath
  4. permission: skript.sd
  5. trigger:
  6. teleport the command sender to the spawn point of (arg-5)
  7. command sender command "/tp %command sender% %argument 2% %argument 3% %argument 4%"
  8. broadcast "&d[SuddenDeath] &41 Minute &dto Sudden Death - Rules"
  9. broadcast "&aDamage is off for the first 30 seconds."
  10. broadcast "&aYou may not go underground. Tell the host if you spawn there."
  11. broadcast "&aYou may not hide and wait for others to kill each other."
  12. command sender command "/pvpoff"
  13. command sender command "/permaday %argument 5%"
  14. wait 30 seconds
  15. broadcast "&d[SuddenDeath] &430 seconds &duntil Sudden Death"
  16. wait 10 seconds
  17. broadcast "&d[SuddenDeath] &420 seconds &duntil Sudden Death"
  18. wait 10 seconds
  19. broadcast "&d[SuddenDeath] &410 seconds &duntil Sudden Death"
  20. broadcast "&d[SuddenDeath] Creating Sudden Death arena..."
  21. command sender command "/butcher"
  22. command sender command "//pos1 %argument 2%,0,%argument 4%"
  23. command sender command "//pos2 %argument 2%,0,%argument 4%"
  24. command sender command "//expand %argument 1% N"
  25. command sender command "//expand %argument 1% S"
  26. command sender command "//expand %argument 1% E"
  27. command sender command "//expand %argument 1% W"
  28. command sender command "//expand vert"
  29. command sender command "//walls glass"
  30. command sender command "/region define sd"
  31. command sender command "/region flag sd invincible allow"
  32. command sender command "/region flag sd build allow"
  33. wait 5 seconds
  34. broadcast "&d[SuddenDeath] Teleporting to Sudden Death..."
  35. loop all players:
  36. teleport the loop-player to the spawn point of (arg-5)
  37. execute console command "/spreadplayers %arg-2% %arg-4% %(arg-1 / (size of all players))% %arg-1% true %loop-player%"
  38. set {_pos::%loop-player%} to location (loop-player's x coordinate, 256, loop-player's z coordinate)
  39. while block at location 1 below {_pos::%loop-player%} is air:
  40. set {_pos::%loop-player%} to (location 1 below {_pos::%loop-player%})
  41. teleport the command sender to {_pos}
  42. command sender command "/wb shape square"
  43. command sender command "/wb set %argument 1% %argument 2% %argument 4%"
  44. broadcast "&a[SuddenDeath] 30 second peace begins now. Tell the host if you are underground."
  45. wait 10 seconds
  46. broadcast "&a[SuddenDeath] 20 Seconds until PvP"
  47. wait 10 seconds
  48. broadcast "&a[SuddenDeath] 10 Seconds until PvP"
  49. wait 5 seconds
  50. broadcast "&a[SuddenDeath] 5 Seconds until PvP"
  51. wait 1 second
  52. broadcast "&a[SuddenDeath] 4 Seconds until PvP"
  53. wait 1 second
  54. broadcast "&a[SuddenDeath] 3 Seconds until PvP"
  55. wait 1 second
  56. broadcast "&a[SuddenDeath] 2 Seconds until PvP"
  57. wait 1 second
  58. broadcast "&a[SuddenDeath] 1 Second until PvP"
  59. wait 1 second
  60. command sender command "/region flag sd invincible deny"
  61. command sender command "/pvpon"
  62. broadcast "&d[SuddenDeath] Sudden Death begins now!"
  63. command sender command "/region remove sd"
Advertisement
Add Comment
Please, Sign In to add comment