On Player World Change:
if "%player's world%" is "world":
if player has diamond named "&6&lWybierz Tryb": #zmien na compass
stop
else:
set slot 0 of player to diamond named "&6&lWybierz Tryb" #zmien na compass
stop
on click with diamond:
if player has diamond named "&6&lWybierz Tryb"
open virtual chest inventory to player
format gui slot 0 of player with stone named "It won't do anything"
format gui slot 1 of player with stone named "It will just close" to close
format gui slot 2 of player with stone named "It will just close but only with pressing a number key" to close using number key
format gui slot 3 of player with stone named "It will make the player execute a command, but he might not have permission" to run player command "/gui"
format gui slot 4 of player with stone named "It will make the player execute a command with ""*"" permission" to run player command "/gui" with permission "*"
format gui slot 5 of player with stone named "It will make the console execute a command" to run console command "/gui"
format gui slot 6 of player with stone named "It will run the function doSomething()" to run function doSomething()
format gui slot 7 of player with stone named "It will close and then run the function doSomething()" to close then run function doSomething()
format gui slot 8 of player with stone named "It will run doSomething() if you click on it with a stone" to run function doSomething() with cursor stone
format gui slot 9 of player with stone named "It will run the gui event" to run gui event
function doSomething(i: int = 0): #TuSKe will run this function even if it was loaded after the command above. Need 1.7.2+ for it.
broadcast "And it did"
chodzi mi dokladniej zeby po On click with diamond: dalej jesli gracz mial by diament z nazwą "&6&lWybierz Serwer" to otwieralo by mu sie te menu.
Pytanie
Gość MaksymilianOr
Dzien dobry,
proszę o pomoc z tym skriptem:
On Player World Change: if "%player's world%" is "world": if player has diamond named "&6&lWybierz Tryb": #zmien na compass stop else: set slot 0 of player to diamond named "&6&lWybierz Tryb" #zmien na compass stop on click with diamond: if player has diamond named "&6&lWybierz Tryb" open virtual chest inventory to player format gui slot 0 of player with stone named "It won't do anything" format gui slot 1 of player with stone named "It will just close" to close format gui slot 2 of player with stone named "It will just close but only with pressing a number key" to close using number key format gui slot 3 of player with stone named "It will make the player execute a command, but he might not have permission" to run player command "/gui" format gui slot 4 of player with stone named "It will make the player execute a command with ""*"" permission" to run player command "/gui" with permission "*" format gui slot 5 of player with stone named "It will make the console execute a command" to run console command "/gui" format gui slot 6 of player with stone named "It will run the function doSomething()" to run function doSomething() format gui slot 7 of player with stone named "It will close and then run the function doSomething()" to close then run function doSomething() format gui slot 8 of player with stone named "It will run doSomething() if you click on it with a stone" to run function doSomething() with cursor stone format gui slot 9 of player with stone named "It will run the gui event" to run gui event function doSomething(i: int = 0): #TuSKe will run this function even if it was loaded after the command above. Need 1.7.2+ for it. broadcast "And it did"chodzi mi dokladniej zeby po On click with diamond: dalej jesli gracz mial by diament z nazwą "&6&lWybierz Serwer" to otwieralo by mu sie te menu.
Odnośnik do komentarza
https://skript.pl/temat/36006-if-pomoc-z-if/Udostępnij na innych stronach
1 odpowiedź 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ą.