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

[Problem] skrypt - pomocy


Rekomendowane odpowiedzi

Opublikowano

Witam, czy umielibyście ustawić w tym kodzie, że gdy wybierze ktoś daną postać i kliknie na guzik to go teleportuje w dane kordynaty lub na komende /spawn?



on click on button:
if block above is a sign:
line 1 of block above is "[KLASA]"
line 2 of block above is "Wojownik"
execute console command "/give %player% 298 1"
execute console command "/give %player% 299 1"
execute console command "/give %player% 300 1"
execute console command "/give %player% 301 1"
execute console command "/give %player% ironsword 1"
execute console command "/give %player% goldenapple 5"
execute console command "/give %player% 320 10"
send "<red><bold>[PVP++] <blue>Wybrales klase: <gold>Wojownik"
apply speed 3 to the player for 99999 seconds
apply strength 2 to the player for 99999 seconds
teleport the player to {punkt.%world%}
send "<red><bold>[PVP++] <blue>Otrzymujesz 60 sekund ochrony przed pvp!"
execute console command "/god %player%"
wait 60 seconds
send "<red><bold>[PVP++] <blue>Twoja ochrona sie skonczyla. Powodzenia ;)"
execute console command "/god %player%"
on place of button:
if block above is a sign:
line 1 of block above is "KLASA"
line 2 of block above is "Wojownik"
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie<blue> klase!" to player
on sign change:
if block below is a button:
line 1 is "KLASA"
line 2 is "Wojownik"
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie<blue> klase!" to player
command /pvpsetspawn:
permission: pvp.setspawn
trigger:
set {punkt.%world%} to location of player
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie <blue>punkt spanu!"
on click on button:
if block above is a sign:
line 1 of block above is "[KLASA]"
line 2 of block above is "Ninja"
execute console command "/give %player% 306 1"
execute console command "/give %player% 307 1"
execute console command "/give %player% 308 1"
execute console command "/give %player% 309 1"
execute console command "/give %player% diamondsword 1"
execute console command "/give %player% goldenapple 20"
execute console command "/give %player% 320 20"
send "<red><bold>[PVP++] <blue>Wybrales klase: <gold>Ninja"
apply slowness 3 to the player for 99999 seconds
apply regeneration 4 to the player for 99999 seconds
teleport the player to {punkt.%world%}
send "<red><bold>[PVP++] <blue>Otrzymujesz 60 sekund ochrony przed pvp!"
execute console command "/god %player%"
wait 60 seconds
send "<red><bold>[PVP++] <blue>Twoja ocheona sie skonczyla. Powodzenia ;)"
execute console command "/god %player%"
on place of button:
if block above is a sign:
line 1 of block above is "[KLASA]"
line 2 of block above is "Ninja"
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie<blue> klase!" to player
on sign change:
if block below is a button:
line 1 is "[KLASA]"
line 2 is "Ninja"
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie<blue> klase!" to player
on click on button:
if block above is a sign:
line 1 of block above is "[KLASA]"
line 2 of block above is "Sura"
execute console command "/give %player% diamondsword 1"
execute console command "/give %player% goldenapple 20"
execute console command "/give %player% 320 20"
send "<red><bold>[PVP++] <blue>Wybrales klase: <gold>Sura"
apply strength 10 to the player for 99999 seconds
apply invisibility 4 to the player for 99999 seconds
teleport the player to {punkt.%world%}
send "<red><bold>[PVP++] <blue>Otrzymujesz 60 sekund ochrony przed pvp!"
execute console command "/god %player%"
wait 60 seconds
send "<red><bold>[PVP++] <blue>Twoja ochrona sie skonczyla. Powodzenia ;)"
execute console command "/god %player%"
on place of button:
if block above is a sign:
line 1 of block above is "[KLASA]"
line 2 of block above is "Sura"
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie<blue> klase!" to player
on sign change:
if block below is a button:
line 1 is "[KLASA]"
line 2 is "Sura"
send "<red><bold>[PVP] <blue>Stworzono <gold>poprawnie<blue> klase!" to player
on click on button:
if block above is a sign:
line 1 of block above is "[KLASA]"
line 2 of block above is "Szaman"
execute console command "/give %player% 306 1"
execute console command "/give %player% 307 1"
execute console command "/give %player% 308 1"
execute console command "/give %player% 309 1"
execute console command "/give %player% diamondsword 1"
execute console command "/give %player% 373:16417 128"
execute console command "/give %player% 320 64"
send "<red><bold>[PVP++] <blue>Wybrales klase: <gold>Szaman"
apply regeneration 4 to the player for 99999 seconds
teleport the player to {punkt.%world%}
send "<red><bold>[PVP++] <blue>Otrzymujesz 60 sekund ochrony przed pvp!"
execute console command "/god %player%"
wait 60 seconds
send "<red><bold>[PVP++] <blue>Twoja ochrona sie skonczyla. Powodzenia ;)"
execute console command "/god %player%"
on place of button:
if block above is a sign:
line 1 of block above is "[KLASA]"
line 2 of block above is "Szaman"
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie<green> klase!" to player
on sign change:
if block below is a button:
line 1 is "[KLASA]"
line 2 is "Szaman"
send "<red><bold>[PVP++] <blue>Stworzono <gold>poprawnie<green> klase!" to player
command /pvp:
trigger:
send "<red><bold>[PVP++] <blue>/pvp<gold>autor <grey>-<blue> Sprawdza autora skryptu"
send "<red><bold>[PVP++] <blue>/pvp<gold>setspawn <grey>-<blue> Ustawia teleport po wybraniu klasy"
send "<red><bold>[PVP++] <blue>/pvp<gold>wersja <grey>-<blue> Sprawdza wersje skryptu"
command /pvpautor:
trigger:
send "<red><bold>[PVP++] <blue>Autor:<gold> mrkacperek"
command /pvpwersja:
trigger:
send "<red><bold>[PVP++] <blue>Wersja:<gold> 1.0"

Tworzę strony www na zamówienie :)[PISZ PW]


Opublikowano

@UP

 

Ale on edytuje skrypt na swój użytek...

 

@TOPIc

 

jedno ostrzeżenie,jeśli będziesz chciał aby na serwerze były też inne tryby to guziki będą zbugowane :c

Opublikowano

@UP

 

Wystarczy że dodasz do :

 
on click on button:
 

 

Po wybraniu klasy itp tą linijke.

 

Możesz też ustawić osobny spawn dla innej klasy :3

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...