Skocz do zawartości

[Skrypt] Fake-Sektory


epitqvist
# CSH External VIP Project

Masz dosyć problemów z czynnikiem zaufania w CS2 lub notorycznymi banami?

Sprawdź CSH External VIP Project.


Więcej informacji  

Rekomendowane odpowiedzi

Fake-Sektory

 

AUTOR

BodzioPlugins

Wersja Skryptu

1.0

Funkcje:

 

dzieli mape na 2 sektory (nie servery)

Wymagania:

Multiverse-core

WildSkript

 

 

KOD

 

  1. autor:BodzioPlugins
  2. command /sektory [<text>]:
  3.         permission message: &cNie mozesz uzywac tej komedy!
  4.         permission: essentials.sektory
  5.         trigger:
  6.                 if arg 1 is not set:
  7.                         send "&fPoprawne uzycie &o/sektory Wlacz|Wylacz|SetSpawn - Robi oddzielny swiat i robi wszystko za ciebie ;)"
  8.                 if arg 1 is "setspawn":
  9.                         set {Sectors::Status} to false
  10.                         set {Sectors::Spawn::s1} to location of player
  11.                         wait 2 tick
  12.                         run player command "mv tp s2" as op
  13.                         wait 2 tick
  14.                         run player command "bukkit:tp 0 62 0" as op
  15.                         wait 2 tick
  16.                         set {Sectors::Spawn::s2} to location of player
  17.                         wait 2 tick
  18.                         run player command "mv tp world" as op
  19.                         teleport player to {Sectors::Spawn::s1}
  20.                         broadcast "&7Gracz: &c%player% &7ustawil spawn sektorow na kordach: &c%{Sectors::Spawn::s1}% &7!"
  21.                         set {Sectors::Status} to true
  22.                 if arg 1 is "wlacz" or "on":
  23.                         set {Sectors::Status} to true
  24.                         broadcast "&7Gracz: &c%player% &2wlaczyl &7dzialanie sektorow!"
  25.                 if arg 1 is "wylacz" or "off":
  26.                         set {Sectors::Status} to false
  27.                         broadcast "&7Gracz: &c%player% &4wylaczyl &7dzialanie sektorow!"
  28. on load:
  29.         set {Sectors::Status} to false
  30.         wait 1 tick
  31.         set {Sectors::Status} to true
  32. on anymove:
  33.         if {Sectors::Status} is true:
  34.                 if world of player is "world":
  35.                         if distance between player and {Sectors::Spawn::s1} is bigger than 4530:
  36.                                 display "&eJestes przy granicy sektora!" on bossbar with 100 percent by 3 seconds for player
  37.                         if distance between player and {Sectors::Spawn::s1} is bigger than 4501:
  38.                                 if {Sectors::Aready::In::PvP::Of::%player%} is not set:
  39.                                         set {Coordinate::x::Of::%player%} to x-location of player
  40.                                         set {Coordinate::Z::Of::%player%} to z-location of player
  41.                                         add 20.0 to {Coordinate::x::Of::%player%}
  42.                                         add 20.0 to {Coordinate::Z::Of::%player%}
  43.                                         run player command "mv tp s2" as op
  44.                                         execute console command "bukkit:tp %player% %{Coordinate::x::Of::%player%}% 62 %{Coordinate::Z::Of::%player%}%"
  45.                                         loop 98 times:
  46.                                                 send ""
  47.                                         display "&ePrzeszedles na nastepny sektor!" on bossbar with 100 percent by 5 seconds for player
  48.                                 else:
  49.                                         cancel event
  50.                                         push the player upwards at speed 0.9
  51.                                         push the player horizontally forward at speed -4
  52.                                         send "&4CIO !"
  53.                 if world of player is "s2":
  54.                         if distance between player and {Sectors::Spawn::s2} is smaller than 4470:
  55.                                 display "&eJestes przy granicy sektora!" on bossbar with 100 percent by 3 seconds for player
  56.                         if distance between player and {Sectors::Spawn::s2} is smaller than 4499:
  57.                                 if {Sectors::Aready::In::PvP::Of::%player%} is not set:
  58.                                         set {Coordinate::x::Of::%player%} to x-location of player
  59.                                         set {Coordinate::Z::Of::%player%} to z-location of player
  60.                                         add -20.0 to {Coordinate::x::Of::%player%}
  61.                                         add -20.0 to {Coordinate::Z::Of::%player%}
  62.                                         run player command "mv tp world" as op
  63.                                         execute console command "bukkit:tp %player% %{Coordinate::x::Of::%player%}% 62 %{Coordinate::Z::Of::%player%}%"
  64.                                         loop 98 times:
  65.                                                 send ""
  66.                                         display "&ePrzeszedles na nastepny sektor!" on bossbar with 100 percent by 5 seconds for player
  67.                                 else:
  68.                                         cancel event
  69.                                         push the player upwards at speed 0.9
  70.                                         push the player horizontally forward at speed -4
  71.                                         send "&4CIO  !"
  72. command /serwer [<text>]:
  73.         aliases: server, sektor
  74.         trigger:
  75.                 if arg 1 is set:
  76.                         if arg 1 parsed as player is online:
  77.                                 if world of arg 1 parsed as player is "world":
  78.                                         send "&7Ten gracz jest obecnie na sektorze: &cs1"
  79.                                 if world of arg 1 parsed as player is "s2":
  80.                                         send "&7Ten gracz jest obecnie na sektorze: &cs2"
  81.                         else:
  82.                                 send "&4Ten gracz jest obecnie offline!"
  83.                 else:
  84.                         if world of player is "world":
  85.                                 send "&7Jestes na sektorze: &cs1"
  86.                         if world of player is "s2":
  87.                                 send "&7Jestes na sektorze: &cs2"
  88.  
  89. on quit:
  90.         {Sectors::Aready::In::PvP::Of::%player%} is true
  91.         delete {Sectors::Aready::In::PvP::Of::%player%}
  92.         delete {Sectors::Seconds::Of::PvP::Of::%player%}
  93. on damage:
  94.         victim is player
  95.         attacker is player
  96.         if {Sectors::Aready::In::PvP::Of::%victim%} is true:
  97.                 set {Sectors::Seconds::Of::PvP::Of::%victim%} to 20
  98.                 stop
  99.         set {Sectors::Aready::In::PvP::Of::%victim%} to true
  100.         set {Sectors::Seconds::Of::PvP::Of::%victim%} to 20
  101.         while {Sectors::Seconds::Of::PvP::Of::%victim%} is more than 1:
  102.                 {Sectors::Seconds::Of::PvP::Of::%victim%} is not set:
  103.                         stop
  104.                 subtract 1 from {Sectors::Seconds::Of::PvP::Of::%victim%}
  105.                 wait 1 second
  106.         delete {Sectors::Aready::In::PvP::Of::%victim%}
  107.         delete {Sectors::Seconds::Of::PvP::Of::%victim%}
  108. on damage:
  109.         victim is player
  110.         attacker is player
  111.         if {Sectors::Aready::In::PvP::Of::%attacker%} is true:
  112.                 set {Sectors::Seconds::Of::PvP::Of::%attacker%} to 20
  113.                 stop
  114.         set {Sectors::Aready::In::PvP::Of::%attacker%} to true
  115.         set {Sectors::Seconds::Of::PvP::Of::%attacker%} to 20
  116.         while {Sectors::Seconds::Of::PvP::Of::%attacker%} is more than 1:
  117.                 {Sectors::Seconds::Of::PvP::Of::%attacker%} is not set:
  118.                         stop
  119.                 subtract 1 from {Sectors::Seconds::Of::PvP::Of::%attacker%}
  120.                 wait 1 second
  121.         delete {Sectors::Aready::In::PvP::Of::%attacker%}
  122.         delete {Sectors::Seconds::Of::PvP::Of::%attacker%}
  123. on join:
  124.         {Sectors::Aready::In::PvP::Of::%player%} is set:
  125.                 delete {Sectors::Aready::In::PvP::Of::%player%}
  126.         {Sectors::Seconds::Of::PvP::Of::%player%} is set:
  127.                 delete {Sectors::Seconds::Of::PvP::Of::%player%}

 

 


Edytowane przez CIDE ★
Odnośnik do komentarza

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  Tagi

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Regulamin. Polityka prywatności