command /amuletall:
permission: admin
permission message: &cNie masz permisji do tej komendy!
trigger:
execute console command "admin.efektgive speed %player%" to all players
execute console command "admin.efektgive sila %player%" to all players
execute console command "admin.efektgive haste %player%" to all players
send "&a Pomyslnie nadano kazdemu graczowi &6 WSZYTSKIE VOUCHERY"
Wyżej skrypt na tzw. amulety/vouchery. Chce storzyc komende która nadaje je kazdemu graczowi. Poprzez uzycie komendy przez konsole ( Bo tak łatwiej niz zawierac tyle linijek po sobie)
Niżej komenda która ma nadawac efekt . ONA W PEŁNI DZIAŁA. Jednak chce aby przekierownie nastąpiło przez konsole przy uzyciu /amuletall:
command /admin.efektgive [<text>] [<player>]:
permission: admin
permission message : &c Nie masz permisji do tej komendy!
trigger:
if arg 1 is set:
if arg 2 is not set:
send "&cPoprawne użycie to /admin.efektgive <EFEKT> <GRACZ>"
if arg 1 is "speed":
if arg 2 is set:
apply speed 2 to the arg 2 for 300 second
send "&aPomyslnie otrzymales efekt &b&lSPEED II" to arg 2
if arg 1 is "sila":
if arg 2 is set:
apply strength 2 to the arg 2 for 300 second
send "&aPomyslnie otrzymales efekt &c&lSILA II" to arg 2
if arg 1 is "haste":
if arg 2 is set:
apply haste 2 to the arg 2 for 300 second
send "&aPomyslnie otrzymales efekt &6&lHASTE II" to arg 2
Pytanie
TremeQ 5
command /amuletall:
permission: admin
permission message: &cNie masz permisji do tej komendy!
trigger:
execute console command "admin.efektgive speed %player%" to all players
execute console command "admin.efektgive sila %player%" to all players
execute console command "admin.efektgive haste %player%" to all players
send "&a Pomyslnie nadano kazdemu graczowi &6 WSZYTSKIE VOUCHERY"
Wyżej skrypt na tzw. amulety/vouchery. Chce storzyc komende która nadaje je kazdemu graczowi. Poprzez uzycie komendy przez konsole ( Bo tak łatwiej niz zawierac tyle linijek po sobie)
Niżej komenda która ma nadawac efekt . ONA W PEŁNI DZIAŁA. Jednak chce aby przekierownie nastąpiło przez konsole przy uzyciu /amuletall:
command /admin.efektgive [<text>] [<player>]:
permission: admin
permission message : &c Nie masz permisji do tej komendy!
trigger:
if arg 1 is set:
if arg 2 is not set:
send "&cPoprawne użycie to /admin.efektgive <EFEKT> <GRACZ>"
if arg 1 is "speed":
if arg 2 is set:
apply speed 2 to the arg 2 for 300 second
send "&aPomyslnie otrzymales efekt &b&lSPEED II" to arg 2
if arg 1 is "sila":
if arg 2 is set:
apply strength 2 to the arg 2 for 300 second
send "&aPomyslnie otrzymales efekt &c&lSILA II" to arg 2
if arg 1 is "haste":
if arg 2 is set:
apply haste 2 to the arg 2 for 300 second
send "&aPomyslnie otrzymales efekt &6&lHASTE II" to arg 2
Odnośnik do komentarza
https://skript.pl/temat/52575-nadawanie-itemow-za-pomoca-execute-console-command/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.