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] Permisje skryptu


Rekomendowane odpowiedzi

Opublikowano

Siemka,

Mam pytanie czy jest możliwość dodania permisji skryptu dla członka gildii.
Chodzi o to czy można zrobić tak aby tylko członkowie danej gildii mogli używać danej komendy

Opublikowano

 

command /komenda <text>:
      trigger:
           if arg 1 is "blablabla" or "alallala":
                  if player has permission "permisja.czlonek":
                          działanie

 

Niewytabowane ;3 Dałem Ci tylko zarys.

Opublikowano

Dodaj w pliku permissions grupie Admins te uprawnienie:

- rolety

A tutaj skrypt:

variables:
	{rolety} = 0
	
command /rolety:	
	trigger:
		if player has permission "rolety":
			make player execute command "/rg select rolety1"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			make player execute command "/rg select rolety2"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			make player execute command "/rg select rolety3"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			make player execute command "/rg select rolety4"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			make player execute command "/rg select rolety5"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			make player execute command "/rg select rolety6"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			make player execute command "/rg select rolety7"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			make player execute command "/rg select rolety8"
			if {rolety} is 0:
				make player execute command "//replace 20 4"
			if {rolety} is 1:
				make player execute command "//replace 4 20"
			if {rolety} is 0:
				set {rolety} to 1
				stop
			if {rolety} is 1:
				set {rolety} to 0
				stop
  • 1 rok później...
Opublikowano
command /setvpokoj:

    description: &7[&aVIP&7] &6Ustawiono Pokoj VIPA

    executable by: player

    trigger:

        if player has permissions "setvip.dh":

        set {vpokoj} to location of player

        send "&7[&aVIP&7] &6Ustawiono Pokoj VIPA"

        stop

command /vpokoj:

    description: &7[&aVIP&7] &6Teleportacja do Pokoju VIPA

    executable by: player

    trigger:

        if player has permissions "vip.dh":

        teleport player to {vpokoj}

        send "&7[&aVIP&7] &6Jestes usiebie w Pokoju VIPA"

        stop

command /setsvpokoj:

    description: &7[&aVIP&7] &6Ustawiono Pokoj SVIPA

    executable by: player

    trigger:

        if player has permissions "setsvip.dh":

        set {svpokoj} to location of player

        send "&7[&aVIP&7] &6Ustawiono Pokoj SVIPA"

        stop

command /svpokoj:

    description: &7[&aSVIP&7] &6Teleportacja do Pokoju SVIPA

    executable by: player

    trigger:

        if player has permissions "svip.dh":

        teleport player to {svpokoj}

        send "&7[&aSVIP&7] &6Jestes usiebie w Pokoju SVIPA"

        stop

command /setevpokoj:

    description: &7[&aVIP&7] &6Ustawiono Pokoj EliteVIPA

    executable by: player

    trigger:

        if player has permissions "setevip.dh":

        set {evpokoj} to location of player

        send "&7[&aVIP&7] &6Ustawiono Pokoj EliteVIPA"

        stop

command /evpokoj:

    description: &7[&aSVIP&7] &6Teleportacja do Pokoju EliteVIPA

    executable by: player

    trigger:

        if player has permissions "evip.dh":

        teleport player to {evpokoj}

        send "&7[&aSVIP&7] &6Jestes usiebie w Pokoju EliteSVIPA"

        stop

 

 

 

 

 

 

Jak mam zrobić żeby była do tego permissia ? pomocy szybko

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...