Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie] Skrypt na sethome oraz spawn


Rekomendowane odpowiedzi

Opublikowano

Witam, mam problem otóż mam limit na 5 plginów na swoim serwerze, i poszukuje skrypta, który robi za spawna i sethome, czy jest taka możliwość?
Bardzo proszę o pomoc, bardzo by mi to pomogło ;)

Opublikowano


 

 

command /home:

trigger:

if {tpa::%player%::home} is set:

send "Trwa teleportacja do domu."

send "Poczekaj 5 sekund."

set {_x} to x-location of player

set {_y} to y-location of player

set {_z} to z-location of player

loop 5 times:

if difference between x-location of player and {_x} is larger than 0.5:

set {_c} to true

if difference between y-location of player and {_y} is larger than 0.5:

set {_c} to true

if difference between z-location of player and {_z} is larger than 0.5:

set {_c} to true

if {_c} is true:

send "Ruszyles sie. Teleportacja przerwana."

stop

wait 1 second

teleport player to {tpa::%player%::home}

stop

send "Nie posiadasz domu."

stop

command /sethome:

trigger:

if block below player is water or lava or air:

send "Nie mozesz w tej pozycji ustawic domu."

stop

if block 2 below player is water or lava or air:

send "Nie mozesz w tej pozycji ustawic domu."

stop

if block 3 below player is water or lava or air:

send "Nie mozesz w tej pozycji ustawic domu."

stop

set {tpa::%player%::home} to location of player

send "Ustawiles dom"

command /delhome:

trigger:

if {tpa::%player%::home} is not set:

send "I tak nie masz domu."

stop

clear {tpa::%player%::home}

send "Usunales swoj dom."

stop

command /setspawn:

trigger:

if player has permission "knugi":

set {spawn} to location of player

send "Ustawiles spawn!"

stop

command /spawn:

trigger:

if {spawn} is set:

send "Trwa teleportacja na spawn."

send "Poczekaj 5 sekund."

set {_x} to x-location of player

set {_y} to y-location of player

set {_z} to z-location of player

loop 5 times:

if difference between x-location of player and {_x} is larger than 0.5:

set {_c} to true

if difference between y-location of player and {_y} is larger than 0.5:

set {_c} to true

if difference between z-location of player and {_z} is larger than 0.5:

set {_c} to true

if {_c} is true:

send "Ruszyles sie. Teleportacja przerwana."

stop

wait 1 second

teleport player to {spawn}

stop

send "Blad. Napisz do administratora (Ustawienie spawnu)"

stop

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...