Guest User

Untitled

a guest
Jan 6th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. #Skrypt napisany przez Msczosnal
  2. #Wersja 2
  3. #Można ustawiac nieskonczenie wiele punktow respawnu
  4.  
  5. #żeby ustawic miejsce na spawn zombie trzeba stworzyc region, ktory ustawic mozna w opcjach.
  6.  
  7.  
  8. options:
  9. czas: 5 #czas respawnu w sekundach, bedzie 1 sekunda wiecej poniewaz jest every 1 second!
  10. limit: 20 #limit zombie do zrespienia
  11. region: zombies #Nazwa regionu w ktorym maja sie respic zombie
  12. variables:
  13. {zombiaki} = 0
  14. {spawny} = 0
  15. command /usun:
  16. trigger:
  17. player has permission "zombie.usun"
  18. if {spawny} is greater or equal to 0:
  19. set {spawny} to 0
  20. set {zombiaki} to 0
  21. clear {zombie::*}
  22. loop all zombies:
  23. if name of loop-entity is "&7Zombie":
  24. delete loop-entity
  25. else:
  26. stop
  27. command /info:
  28. trigger:
  29. player has permission "zombie.info"
  30. send "&7Region - &c{@region}"
  31. send "&7Limit - &c{@limit}"
  32. set {_czas} to {@czas}+1
  33. loop all zombies:
  34. if name of loop-zombies is "&7Zombie":
  35. add 1 to {_wszystkie}
  36. send "&7Liczba zywych zombie - &c%{_wszystkie}%"
  37. send "&7Czas respawnu - &c%{_czas}% sekund"
  38. send "&7Ustawione spawny: &c%{spawny}%"
  39. send "&7Licznik zombie - &c%{zombiaki}%"
  40. loop {zombie::%{spawny}%::*}:
  41. send "&7%loop-value%"
  42. command /spawnzombie:
  43. trigger:
  44. player has permission "zombie.ustaw"
  45. if player is in "{@region}":
  46. add location of player to {zombie::%{spawny}%::*}
  47. set {_x} to {spawny}+1
  48. send "&aUstawiles &b%{_x}%&a spawn zombie"
  49. add 1 to {spawny}
  50. stop
  51. else:
  52. send "&cNie znajdujesz sie na regionie ''{@region}''"
  53. on spawn:
  54. if event-entity is not player:
  55. if event-entity is in "{@region}":
  56. delete event-entity
  57. on death of zombie:
  58. if name of victim is "&7Zombie":
  59. remove 1 from {zombiaki}
  60. stop
  61. every 1 second:
  62. if {zombie::0::*} is set:
  63. if {zombiaki} < {@limit}:
  64. broadcast "%{zombiaki}%"
  65. add 1 to {zombiaki}
  66. wait {@czas} seconds
  67. set {_szansa} to a random integer between 0 and {spawny}
  68. loop {zombie::%{_szansa}%::*}:
  69. spawn 1 zombie at location of loop-value
  70. set the name of last spawned entity to "&7Zombie"
  71. stop
  72. else:
  73. stop
  74. else:
  75. stop
  76. every 5 second:
  77. loop all zombies:
  78. if name of loop-zombies is "&7Zombie":
  79. loop-zombie is in "{@region}":
  80. apply fire resistance to loop-entity for 10 second
  81. else:
  82. kill loop-zombie
  83. every 10 minutes:
  84. loop all zombies:
  85. if name of loop-entity is "&7Zombie":
  86. delete loop-entity
  87. set {zombiaki} to 0
Advertisement
Add Comment
Please, Sign In to add comment