Skocz do zawartości
  • 0

RANGI NA HASLO


xKubeQ
 Udostępnij

Pytanie

Witam.
Proszę o napisanie skriptu:
Jeżeli np. Ja mam moderatora to gdy wejdę na serwer mam gracza i gdy wpiszę komendę /moderator <Ustawione haslo> to dostaję rangę moderator
KOMENDY:
/Moderator hasloustaw <HASLO>
/Moderator <HASLO>

Odnośnik do komentarza
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:
	{moderator.%player%} = false

command /moderator [<text>] [<text>]:
	trigger:
  		if player has permission "mod.Admin":
			if {moderator.%player%} is false:
  				if arg 1 is "ustawhaslo":
  					if arg 2 is set:
	  					set {haslo.moderator.%player%} to arg 2
  						set {moderator.%player%} to true
  					else:
  						send "&4Uzycie: &a/moderator HASLO &4lub &a/moderator ustawhaslo HASLO"
  				else:
  					send "&4Uzycie: &a/moderator HASLO &4lub &a/moderator ustawhaslo HASLO"
  			else:
  				if arg 1 is {haslo.moderator.%player%}:
  					send "&4&lZalogowano pomyslnie!"
  					execute console command "pex user %player% group set Moderator"
  				else:
  					send "&4&lHaslo jest nieprawidlowe!"
  		else:
  			send "&4Nie masz permisji!"

Mam nadzieję,że pomogłem :)

 

Spoiler

#Poczatek Proszenia
Jak działa to daj like :)
#Koniec Proszenia

 

Edytowane przez Krzychu2016
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
variables:
	{moderator.%player%} = false
	{helper.%player%} = false
	{wlasciciel.%player%} = false
	{admin.%player%} = false
	{head.%player%} = false

on quit:
	execute console command "pex user %player% group set Gracz

command /moderator [<text>] [<text>]:
	trigger:
  		if player has permission "mod.Admin":
			if {moderator.%player%} is false:
  				if arg 1 is "ustawhaslo":
  					if arg 2 is set:
	  					set {haslo.moderator.%player%} to arg 2
  						set {moderator.%player%} to true
  					else:
  						send "&4Uzycie: &a/moderator HASLO &4lub &a/moderator ustawhaslo HASLO"
  				else:
  					send "&4Uzycie: &a/moderator HASLO &4lub &a/moderator ustawhaslo HASLO"
  			else:
  				if arg 1 is {haslo.moderator.%player%}:
  					send "&4&lZalogowano pomyslnie!"
  					execute console command "pex user %player% group set Moderator"
  				else:
  					send "&4&lHaslo jest nieprawidlowe!"
  		else:
  			send "&4Nie masz permisji!"
  
command /head [<text>] [<text>]:
	trigger:
  		if player has permission "mod.Admin":
			if {head.%player%} is false:
  				if arg 1 is "ustawhaslo":
  					if arg 2 is set:
	  					set {haslo.head.%player%} to arg 2
  						set {head.%player%} to true
  					else:
  						send "&4Uzycie: &a/head HASLO &4lub &a/head ustawhaslo HASLO"
  				else:
  					send "&4Uzycie: &a/head HASLO &4lub &a/head ustawhaslo HASLO"
  			else:
  				if arg 1 is {haslo.head.%player%}:
  					send "&4&lZalogowano pomyslnie!"
  					execute console command "pex user %player% group set HeadAdmin"
  				else:
  					send "&4&lHaslo jest nieprawidlowe!"
  		else:
  			send "&4Nie masz permisji!"
  
command /admin [<text>] [<text>]:
	trigger:
  		if player has permission "mod.Admin":
			if {admin.%player%} is false:
  				if arg 1 is "ustawhaslo":
  					if arg 2 is set:
	  					set {haslo.admin.%player%} to arg 2
  						set {admin.%player%} to true
  					else:
  						send "&4Uzycie: &a/admin HASLO &4lub &a/admin ustawhaslo HASLO"
  				else:
  					send "&4Uzycie: &a/admin HASLO &4lub &a/admin ustawhaslo HASLO"
  			else:
  				if arg 1 is {haslo.admin.%player%}:
  					send "&4&lZalogowano pomyslnie!"
  					execute console command "pex user %player% group set admin"
  				else:
  					send "&4&lHaslo jest nieprawidlowe!"
  		else:
  			send "&4Nie masz permisji!"
  
command /helper [<text>] [<text>]:
	trigger:
  		if player has permission "mod.Admin":
			if {helper.%player%} is false:
  				if arg 1 is "ustawhaslo":
  					if arg 2 is set:
	  					set {haslo.helper.%player%} to arg 2
  						set {helper.%player%} to true
  					else:
  						send "&4Uzycie: &a/helper HASLO &4lub &a/helper ustawhaslo HASLO"
  				else:
  					send "&4Uzycie: &a/helper HASLO &4lub &a/helper ustawhaslo HASLO"
  			else:
  				if arg 1 is {haslo.helper.%player%}:
  					send "&4&lZalogowano pomyslnie!"
  					execute console command "pex user %player% group set helper"
  				else:
  					send "&4&lHaslo jest nieprawidlowe!"
  		else:
  			send "&4Nie masz permisji!"
  
command /wlasciciel [<text>] [<text>]:
	trigger:
  		if player has permission "mod.Admin":
			if {wlasciciel.%player%} is false:
  				if arg 1 is "ustawhaslo":
  					if arg 2 is set:
	  					set {haslo.wlasciciel.%player%} to arg 2
  						set {wlasciciel.%player%} to true
  					else:
  						send "&4Uzycie: &a/wlasciciel HASLO &4lub &a/wlasciciel ustawhaslo HASLO"
  				else:
  					send "&4Uzycie: &a/wlasciciel HASLO &4lub &a/wlasciciel ustawhaslo HASLO"
  			else:
  				if arg 1 is {haslo.wlasciciel.%player%}:
  					send "&4&lZalogowano pomyslnie!"
  					execute console command "pex user %player% group set wlasciciel"
  				else:
  					send "&4&lHaslo jest nieprawidlowe!"
  		else:
  			send "&4Nie masz permisji!"

juz :)

 

@up nie mozna bo po 1 ustawieniu juz sie robi {moderator.%player%} true i wtedy juz nie mozna zmienic na false

Edytowane przez Krzychu2016
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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