Skocz do zawartości
  • 0

Może ktoś poprawić skrypt?


Pytanie

Tak jak w temacie: 

command /tp [<player>]:
    trigger:
        if arg 1 is set:
            if arg 1 is online:
                if player has permission "hs.tp":
                    teleport player to arg 1
                    send player title "&7[&a&lHS&r&7]" with subtitle "&fPrzeteleportowano do gracza &e%arg 1%"
                else:
                    send player title "&7[&a&lHS&r&7]" with subtitle "&cNie ma takiego gracza online"
                    stop
            else:
                send "&7[&a&lHS&r&7] &8>> &aUzyj: /tp gracz"
                stop
        else:
            send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
            stop
variables:
    {fly.%player%} = false
    {god.%player%} = false
command /fly [<text>]:
    trigger:
        if player has permission "hs.fly":
            if {fly.%player%} is false:
                set player's fly mode to true
                send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cF" for 5 seconds
                stop
            else:
                send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
        else:
            set player's fly mode to false
            send player title "&7[&a&lHS&r&7]" with subtitle "&aWylaczyles &cFLY" for 5 seconds
            stop
command /god [<text>]:
    trigger:
        if player has permission "hs.god":
        if {god.%player%} = false:
            set {god.%player%} to true
            send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cGODA!" for 5 seconds
        else:
            send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
            stop
    else:
        set {god.%player%} to false
        send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cGODA" for 5 seconds
        stop
        
command /gamemode [<text>]:
    aliases: gm, gmode, gamem
    trigger:
        if player has permission "hs.gm":
            if arg 1 is set:
                if arg 1 is "1" or "creative" or "kreatywny" or "c":
                    set player's gamemode to creative
                    send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cSURVIVAL!" for 5 seconds
                if arg 1 is "0" or "survival" or "przetrwanie" or "s":
                    set player's gamemode to survival
                    send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cSURVIVAL!" for 5 seconds
                else:
                    send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 secondssend player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
                    stop
        else:
            send "&7[&a&lHS&r&7] &aUzyj /gm 1/0"
            stop

 

Poprostu gdy wpisze /gm 1 to wyskakuje wiad brak uprawnien a ta ogl to przy reloadzie nie ma bledow

jak wpisze /god to nie dziala

Odnośnik do komentarza
https://skript.pl/temat/35516-mo%C5%BCe-kto%C5%9B-poprawi%C4%87-skrypt/
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /gamemode [<text>]:
    aliases: gm, gmode, gamem
    trigger:
  		cancel event
        if player has permission "hs.gm":
            if arg 1 is set:
                if arg 1 is "1" or "creative" or "kreatywny" or "c":
                    set player's gamemode to creative
                    send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cSURVIVAL!" for 5 seconds
                if arg 1 is "0" or "survival" or "przetrwanie" or "s":
                    set player's gamemode to survival
                    send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cSURVIVAL!" for 5 seconds
                else:
                    send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 secondssend player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
                    stop
        else:
            send "&7[&a&lHS&r&7] &aUzyj /gm 1/0"
            stop

 

Odnośnik do komentarza
https://skript.pl/temat/35516-mo%C5%BCe-kto%C5%9B-poprawi%C4%87-skrypt/#findComment-228201
Udostępnij na innych stronach

  • 0
command /tp [<player>]:
	trigger:
		if player has permission "hs.tp":
			if arg 1 is set:
				if arg 1 is online:
					teleport player to arg 1
					send player title "&7[&a&lHS&r&7]" with subtitle "&fPrzeteleportowano do gracza &e%arg 1%"
				else:
					send player title "&7[&a&lHS&r&7]" with subtitle "&cNie ma takiego gracza online"
					stop
			else:
				send "&7[&a&lHS&r&7] &8>> &aUzyj: /tp gracz"
				stop
		else:
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
			stop
variables:
	{fly.%player%} = false
	{god.%player%} = false
command /fly [<text>]:
	trigger:
		if player has permission "hs.fly":
			if {fly.%player%} is false:
				set player's fly mode to true
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cF" for 5 seconds
			else:
				set player's fly mode to false
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWylaczyles &cFLY" for 5 seconds
		else:
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
command /god [<text>]:
	trigger:
		if player has permission "hs.god":
			if {god.%player%} = false:
				set {god.%player%} to true
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cGODA!" for 5 seconds
			else:
				set {god.%player%} to false
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cGODA" for 5 seconds
		else:
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
		
command /gamemode [<text>]:
	aliases: gm, gmode, gamem
	trigger:
		if player has permission "hs.gm":
			if arg 1 is set:
				if arg 1 is "1" or "creative" or "kreatywny" or "c":
					set player's gamemode to creative
					send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cSURVIVAL!" for 5 seconds
					stop
				if arg 1 is "0" or "survival" or "przetrwanie" or "s":
					set player's gamemode to survival
					send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cSURVIVAL!" for 5 seconds
				else:
					send "&7[&a&lHS&r&7] &aUzyj /gm 1/0"
					stop
		else:
			send "&7[&a&lHS&r&7] &aUzyj /gm 1/0"
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 secondssend player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
			stop

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/35516-mo%C5%BCe-kto%C5%9B-poprawi%C4%87-skrypt/#findComment-228208
Udostępnij na innych stronach

  • 0

To samo

Gdy wpisze gm 1 Pokazuje ten title ze gm zmienia sie na survival a nie creative 

Tak samo jak god wlaczal pisze ze wlaczylem wylaczam pisze ze wylaczylem i nie dziala god

 

tak samo z fly jak napisalem z gm a i jeden blad jest

 

https://imgur.com/gallery/qUIlDs2

Odnośnik do komentarza
https://skript.pl/temat/35516-mo%C5%BCe-kto%C5%9B-poprawi%C4%87-skrypt/#findComment-228210
Udostępnij na innych stronach

  • 0
19 minut temu, Headshotplayer napisał:

To samo

Gdy wpisze gm 1 Pokazuje ten title ze gm zmienia sie na survival a nie creative 

Tak samo jak god wlaczal pisze ze wlaczylem wylaczam pisze ze wylaczylem i nie dziala god

 

tak samo z fly jak napisalem z gm a i jeden blad jest

 

https://imgur.com/gallery/qUIlDs2

1. Bo takie były wiadomości u ciebie ustawione
2. Bo nic do goda nie miałeś zrobione tylko włączenie / wyłączanie

command /tp [<player>]:
	trigger:
		if player has permission "hs.tp":
			if arg 1 is set:
				if arg 1 is online:
					teleport player to arg 1
					send player title "&7[&a&lHS&r&7]" with subtitle "&fPrzeteleportowano do gracza &e%arg 1%"
				else:
					send player title "&7[&a&lHS&r&7]" with subtitle "&cNie ma takiego gracza online"
					stop
			else:
				send "&7[&a&lHS&r&7] &8>> &aUzyj: /tp gracz"
		else:
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
command /fly [<text>]:
	trigger:
		if player has permission "hs.fly":
			if (player's fly mode) is false:
				set player's fly mode to true
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cFLY" for 5 seconds
			else:
				set player's fly mode to false
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWylaczyles &cFLY" for 5 seconds
		else:
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
command /god [<text>]:
	trigger:
		if player has permission "hs.god":
			if {god.%player%} = false:
				set {god.%player%} to true
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cGODA!" for 5 seconds
			else:
				set {god.%player%} to false
				send player title "&7[&a&lHS&r&7]" with subtitle "&aWlaczyles &cGODA" for 5 seconds
		else:
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds
on damage:
	if {god.%victim%} is true:
		cancel event
command /gamemode [<text>]:
	aliases: gm, gmode, gamem
	trigger:
		if player has permission "hs.gm":
			if arg 1 is set:
				if arg 1 is "1" or "creative" or "kreatywny" or "c":
					set player's gamemode to creative
					send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cCREATIVE!" for 5 seconds
					stop
				if arg 1 is "0" or "survival" or "przetrwanie" or "s":
					set player's gamemode to survival
					send player title "&7[&a&lHS&r&7]" with subtitle "&aZmieniono tryb gry na &cSURVIVAL!" for 5 seconds
			else:
				send "&7[&a&lHS&r&7] &aUzyj /gm 1/0"
		else:
			send player title "&7[&a&lHS&r&7]" with subtitle "&cBrak uprawnien!" for 5 seconds

@DrCosta nie nie jest za dużo, jest normalnie po jednym tabie.
 

Odnośnik do komentarza
https://skript.pl/temat/35516-mo%C5%BCe-kto%C5%9B-poprawi%C4%87-skrypt/#findComment-228212
Udostępnij na innych stronach

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ą.

Nieaktywny
Odpowiedz na pytanie...

×   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.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...