Skocz do zawartości
  • 0

Problem z regionami


Scream1137

Pytanie

on region enter:	region is "VIP":		if player has permission "VIP.RegionVIP" or "*":			send "&aJestes &6VIPem &awiec mozesz przebywac w &6VIProomie!"		else:			cancel event 			send "&4Blad: &cNie jestes &6VIPem &cwiec nie mozesz przebywac w &6VIProomie!"				stop	region is "SVIP":		if player has permission "SVIP.RegionSVIP" or "*":			send "&aJestes &6SVIPem &awiec mozesz przebywac w &6VIProomie!"		else:			cancel event			send "&4Blad: &cNie jestes &6SVIPem &cwiec nie mozesz przebywac w &6VIProomie!"			stop	region is "GoldVIP":		if player has permission "GoldVIP.RegionGoldVIP" or "*":			send "&aJestes &6GoldVIPem &awiec mozesz przebywac w &6VIProomie!"		else:			cancel event			send "&4Blad: &cNie jestes &6GoldVIPem &cwiec nie mozesz przebywac w &6VIProomie!"			stop	region is "DiamondVIP":		if player has permission "DiamondVIP.RegionDiamondVIP" or "*":			send "&aJestes &6DiamondVIPem &awiec mozesz przebywac w &6VIProomie!"		else:			cancel event 			send "&4Blad: &cNie jestes &6DiamondVIPem &cwiec nie mozesz przebywac w &6VIProomie"			stop	region is "EliteVIP":		if player has permission "EliteVIP.RegionEliteVIP" or "*":			send "&aJestes &6EliteVIPem &awiec mozesz przebywac w &6VIProomie!"		else:			cancel event 			send "Blad: &cNie jestes &6EliteVIPem" &cwiec nie mozesz przebywac w &6VIProomie!"			stop 

 

problem jest z region is ""

//Zedytowałem tytuł na poprawny. ~Norbi

Odnośnik do komentarza
https://skript.pl/temat/4272-problem-z-regionami/
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0

No norbi wiesz co musiałes mi dac warna :/ 

# Start Code #set {_reg} to region at playerif {_reg} is "VIP":	if player doesn't have permissions "VIP.RegionVIP" or "*":		send "&aJestes &6VIPem &awiec mozesz przebywac w &6VIProomie!"	else:		cancel event 		send "&4Blad: &cNie jestes &6VIPem &cwiec nie mozesz przebywac w &6VIProomie!"			stopif {_reg} is "SVIP":	if player doesn't have permissions "SVIP.RegionSVIP" or "*":		send "&aJestes &6SVIPem &awiec mozesz przebywac w &6VIProomie!"	else:		cancel event		send "&4Blad: &cNie jestes &6SVIPem &cwiec nie mozesz przebywac w &6VIProomie!"		stopif {_reg} is "GoldVIP":	if player doesn't have permissions "GoldVIP.RegionGoldVIP" or "*":		send "&aJestes &6GoldVIPem &awiec mozesz przebywac w &6VIProomie!"	else:		cancel event		send "&4Blad: &cNie jestes &6GoldVIPem &cwiec nie mozesz przebywac w &6VIProomie!"		stopif {_reg} is "DiamondVIP":	if player doesn't have permissions "DiamondVIP.RegionDiamondVIP" or "*":		send "&aJestes &6DiamondVIPem &awiec mozesz przebywac w &6VIProomie!"	else:		cancel event 		send "&4Blad: &cNie jestes &6DiamondVIPem &cwiec nie mozesz przebywac w &6VIProomie"		stopif {_reg} is "EliteVIP":	if player doesn't have permissions "EliteVIP.RegionEliteVIP" or "*":		send "&aJestes &6EliteVIPem &awiec mozesz przebywac w &6VIProomie!"	else:		cancel event 		send "Blad: &cNie jestes &6EliteVIPem" &cwiec nie mozesz przebywac w &6VIProomie!"		stop# zakaz ustawiania home w vip roomie!			on command "sethome":	set {_loc} to location of player	(_loc) is in region "VIP":		cancel event		send "&4Blad: &cNie mozesz ustawic home w &6VIProomie!" 	set {_loc} to location of player	{_loc} is in region "SVIP":		cancel event		send "&4Blad: &cNie mozesz ustawic home w &6VIProomie!"	set {_loc} to location of player	{_loc} is in region "GoldVIP":		cancel event		send "&4Blad: &cNie mozesz ustawic home w &6VIProomie"	set {_loc} to location of player	{_loc} is in region "DiamondVIP":		cancel event 		send "&4Blad: &cNie mozesz ustawic home w &6VIProomie"	set {_loc} to location of player	{_loc} is in region "EliteVIP":		cancel event		send "&4Blad: &cNie mozesz ustawic home w &6VIProomie" 

 

Kodzik w spoilerze 

Edytowane przez Scream1137
Odnośnik do komentarza
https://skript.pl/temat/4272-problem-z-regionami/#findComment-36060
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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