Skocz do zawartości
  • 0

Skrypt na /panel (Pomocy)


Pandekplaygames
 Udostępnij

Pytanie

Siemka wiecie jak zrobic menu w gui takie polskie zeby bylo klikasz w glowke i pisze ze do kickowania w gui np glowa gracza 12345 i jak klikniesz to kickuje go taki skrypt po polsku np /panel cos w tym stylu potrzebuje kickowanie banowanie teleportacje i cos zeby w tym gui bylo zeby dzialo na serwer 1.7 potrzebuje szybko pls.

Odnośnik do komentarza
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

powinno dzialac ale nie obiecuje bo nie testowane jesli beda bledy podeslij ss jakie

Spoiler
options:
	permban.command: ban {PLAYER}
	banip.command: banip {PLAYER}
	tempban.command: tempban {PLAYER} 15m
	kick.command: kick {PLAYER} Kick z konsoli
	unban.command: unban {PLAYER} 
	unbanip.command: unbanip {PLAYER} 
	tp.command: tp {PLAYER} 
	spr.command: spr {PLAYER} 
on script load:
	wait 1 tick
	set {blokada} to false
	add "{@permban.command}" to {spr::*}
	add "{@banip.command}" to {spr::*}
	add "{@tempban.command}" to {spr::*} 
	add "{@kick.command}" to {spr::*}
	add "{@unban.command}" to {spr::*} 
	add "{@unbanip.command}" to {spr::*} 
	add "{@tp.command}" to {spr::*}
	add "{@spr.command" to {spr::*}
	loop {spr::*}:
		if "%loop-value%" contains "{PLAYER}":
			send "&2Config &6%loop-index% &2jest poprawny &8[%script%.sk]" to all ops
		else:
			send "&4Config &6%loop-index% &4nie jest poprawny &8[%script%.sk]" to all ops
			set {blokada} to "&4Config &6%loop-index% &4nie jest poprawny &8[%script%.sk]"
on join:
	loop {gracze::*}:
		if loop-value is player:
			stop
	add player to {gracze::*}
command /panel [<text>] [<text>]:
	trigger:
		if {blokada} is false:
			if arg-1 is not set:
				send "/panel online - pokazuje graczy online"
				send "/panel all/offline - pokazuje wszystkich graczy"
				send "/panel <nick> - pokazuje graczy online"
			else if arg-1 is "online":
				if arg-2 is not set:
					open chest with 6 rows named "wybierz gracza" to player
					wait 2 tick
					loop all players:
						add 1 to {_}
						if {_} <= 45:
							if inventory name of current inventory of player is "wybierz gracza":
								format slot {_}-1 of player with loop-player's skull named "&6%loop-player% &c[%loop-player's rang%]" to run "{}przekierowanie %player% panel %loop-player%"
						else:
							format slot 53 of player with glowstone named "Strona 2" to run [execute player command "panel online 2"]
				else if arg-2 parsed as integer is set:
					open chest with 6 rows named "wybierz gracza" to player
					wait 2 tick
					set {_arg-2} to arg-2 parsed as integer -1
					loop all players:
						add 1 to {_}
						if {_} >= {_arg-2}*45:
							if {_} <= arg-2 parsed as integer*45:
								if inventory name of current inventory of player is "wybierz gracza":
									format slot {_}-1 of player with loop-player's skull named "&6%loop-player% &c[%loop-player's rang%]" to run "{}przekierowanie %player% panel %loop-player%"
							else:
								format slot 53 of player with glowstone named "Strona %arg-2 parsed as integer +1%" to run [execute player command "panel online %arg-2 parsed as integer +1%"]
					if arg-2 parsed as integer >= 2:
						format slot 36 of player with glowstone named "Strona %arg-2 parsed as integer -1%" to run [execute player command "panel online %arg-2 parsed as integer -1%"]
			else if arg-2 is "offline" or "all":
				if arg-2 is not set:
					open chest with 6 rows named "wybierz gracza" to player
					wait 2 tick
					loop {gracze::*}:
						add 1 to {_}
						if {_} <= 45:
							if inventory name of current inventory of player is "wybierz gracza":
								format slot {_}-1 of player with loop-value's skull named "&6%loop-value% &c[%loop-value's rang%]" to run "{}przekierowanie %player% panel %loop-value%"
						else:
							format slot 53 of player with glowstone named "Strona 2" to run [execute player command "panel online 2"]
				else if arg-2 parsed as integer is set:
					open chest with 6 rows named "wybierz gracza" to player
					wait 2 tick
					set {_arg-2} to arg-2 parsed as integer -1
					loop {gracze::*}:
						add 1 to {_}
						if {_} >= {_arg-2}*45:
							if {_} <= arg-2 parsed as integer*45:
								if inventory name of current inventory of player is "wybierz gracza":
									format slot {_}-1 of player with loop-value's skull named "&6%loop-value% &c[%loop-value's rang%]" to run "{}przekierowanie %player% panel %loop-value%"
							else:
								format slot 53 of player with glowstone named "Strona %arg-2 parsed as integer +1%" to run [execute player command "panel online %arg-2 parsed as integer +1%"]
					if arg-2 parsed as integer >= 2:
						format slot 36 of player with glowstone named "Strona %arg-2 parsed as integer -1%" to run [execute player command "panel online %arg-2 parsed as integer -1%"]	
			else:
				loop {gracze::*}:
					if "%arg-2%" is "%loop-value%":
						open chest with 3 rows named "PANEL ADMIA" to player
						wait 2 tick
							if inventory name of current inventory of player is "PANEL ADMIA":
								set {_perm} to "{@permban.command}"
								set {_banip} to "{@banip.command}"
								set {_tempban} to "{@tempban.command}"
								set {_kick} to "{@kick.command}"
								set {_unban} to "{@unban.command}"
								set {_unbanip} to "{@unbanip.command}"
								set {_tp} to "{@tp.command}"
								set {_spr} to "{@spr.command}"
								replace all "{PLAYER}" with "%arg-2%" in {_perm}
								replace all "{PLAYER}" with "%arg-2%" in {_banip}
								replace all "{PLAYER}" with "%arg-2%" in {_tempban}
								replace all "{PLAYER}" with "%arg-2%" in {_kick}
								replace all "{PLAYER}" with "%arg-2%" in {_unban}
								replace all "{PLAYER}" with "%arg-2%" in {_unbanip}
								replace all "{PLAYER}" with "%arg-2%" in {_tp}
								replace all "{PLAYER}" with "%arg-2%" in {_spr}
								format slot 4 of player with arg-2's skull named "&3Gracz &6%arg-2%" to be unstealable
								format slot 9 of player with red wool named "&4PERM &6%arg-2%" with lore "&cKomenada: &7/%{_perm}%" to run execute console command "%{_perm}%"
								format slot 10 of player with red wool named "&4BANIP &6%arg-2%" with lore "&cKomenada: &7/%{_banip}%" to run execute console command "%{_banip}%"
								format slot 11 of player with red wool named "&cTEMPBAN &6%arg-2%" with lore "&cKomenada: &7/%{_tempban}%" to run execute console command "%{_tempban}%"
								format slot 12 of player with orange wool named "&6KICK &6%arg-2%" with lore "&cKomenada: &7/%{_kick}%" to run execute console command "%{_kick}%"
								format slot 13 of player with orange wool named "&2SPRAWDZ &6%arg-2%" with lore "&cKomenada: &7/%{_spr}%" to run execute console command "%{_spr}%"
								format slot 15 of player with green wool named "&2TP DO &6%arg-2%" with lore "&cKomenada: &7/%{_tp}%" to run execute console command "%{_tp}%"
								format slot 16 of player with green wool named "&2UNBAN &6%arg-2%" with lore "&cKomenada: &7/%{_unban}%" to run execute console command "%{_unban}%"
								format slot 17 of player with green wool named "&2UNBANIP &6%arg-2%" with lore "&cKomenada: &7/%{_unbanip}%" to run execute console command "%{_unbanip}%"
		else:
			send "%{blokada}%"
					
command /{}przekierowanie [<player>] [<text>] [<text>]:
	executable by: console
	trigger:
		make player-arg execute command "%arg-2% %arg-3%"
		

 

 

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