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

[Problem] Skript-Nie czyta argumentów?


Gość Sortiq

Rekomendowane odpowiedzi

Opublikowano

Nie wiem dlaczego nie czyta argumentów...

#By Soritq
command /sTeam [<text>]:
	trigger:
		message "&cSortiq &bTeam &3BETA"
		message "&c/steam blue-dolacza do blue"
		message "&c/steam red-dolacza do red"
		message "&c/steam REDsetspawn-ustawia spawna red"
		message "&c/steam BLUEsetspawn-ustawia spawn blue"
		stop
argument 1 is "blue":
	broadcast "&c%player% dolaczyl do &bBLUE!"
	wait 1 second
	message "&aLoading preffix and suffix..."
	execute console command "pex user %player% group set blue"
	set {BLUE.%player%} to true
	wait 3 seconds
	set the player's display name to "&7[&bBLUE&7] &7 %name of player%"
	set the player's tablist name to "&b%name of player%"
	stop
argument 1 is "red":
	broadcast "&b%player% dolaczyl do &cRED!"
	wait 1 second
	message "&aLoading preffix and suffix..."
	execute console command "pex user %player% group set red"
	set {RED.%player%} to true
	wait 3 seconds
	set the player's display name to "&7[&cRED&7] &7 %name of player%"
	set the player's tablist name to "&c%name of player%"
	stop
argument 1 is "REDsetspawn":
		if player has permission "red.setspawn":
			set {RED} to location of player
on death:
	if player has permission "red.respawn":
		teleport player to {RED}
		stop
argument 1 is "BLUEsetspawn":
	if player has permission "blue.setspawn":
		set {BLUE} to location of player
on death:
	if player has permission "blue.respawn":
		teleport player to {BLUE}
		stop
on damage:
	if {RED.%attacker%} is {RED.%victim%}:
		message "&cBlad: &4PvP miedzy czlonkami gildii jest wylaczone!"
		cancel event
		stop
on damage:
	if {BLUE.%attacker%} is {BLUE.%victim%}:
		message "&cBlad: &4PvP miedzy czlonkami gildii jest wylaczone!"

SS Errpost-1119229-0-02926000-1396032028.jpgoru

 

Opublikowano

Musisz tam taby zrobić.

#By Soritq
command /sTeam [<text>]:
	trigger:
		message "&cSortiq &bTeam &3BETA"
		message "&c/steam blue-dolacza do blue"
		message "&c/steam red-dolacza do red"
		message "&c/steam REDsetspawn-ustawia spawna red"
		message "&c/steam BLUEsetspawn-ustawia spawn blue"
		stop
	argument 1 is "blue":
		broadcast "&c%player% dolaczyl do &bBLUE!"
		wait 1 second
		message "&aLoading preffix and suffix..."
		execute console command "pex user %player% group set blue"
		set {BLUE.%player%} to true
		wait 3 seconds
		set the player's display name to "&7[&bBLUE&7] &7 %name of player%"
		set the player's tablist name to "&b%name of player%"
		stop
	argument 1 is "red":
		broadcast "&b%player% dolaczyl do &cRED!"
		wait 1 second
		message "&aLoading preffix and suffix..."
		execute console command "pex user %player% group set red"
		set {RED.%player%} to true
		wait 3 seconds
		set the player's display name to "&7[&cRED&7] &7 %name of player%"
		set the player's tablist name to "&c%name of player%"
		stop
	argument 1 is "REDsetspawn":
		if player has permission "red.setspawn":
			set {RED} to location of player
on death:
	if player has permission "red.respawn":
		teleport player to {RED}
		stop
argument 1 is "BLUEsetspawn":
	if player has permission "blue.setspawn":
		set {BLUE} to location of player
on death:
	if player has permission "blue.respawn":
		teleport player to {BLUE}
		stop
on damage:
	if {RED.%attacker%} is {RED.%victim%}:
		message "&cBlad: &4PvP miedzy czlonkami gildii jest wylaczone!"
		cancel event
		stop
on damage:
	if {BLUE.%attacker%} is {BLUE.%victim%}:
		message "&cBlad: &4PvP miedzy czlonkami gildii jest wylaczone!"

#teams4bal

Opublikowano

kolego macio443 narobił pełno błędów...

 

 

To jest poprawny kod:

#By Soritq       #updated by adixadixb44
command /sTeam [<text>]:
	trigger:
		if arg 1 is empty:
			message "&cSortiq &bTeam &3BETA"
			message "&c/steam blue-dolacza do blue"
			message "&c/steam red-dolacza do red"
			message "&c/steam REDsetspawn-ustawia spawna red"
			message "&c/steam BLUEsetspawn-ustawia spawn blue"
			stop

		if arg 1 is "blue":
			broadcast "&c%player% dolaczyl do &bBLUE!"
			wait 1 second
			message "&aLoading preffix and suffix..."
			execute console command "pex user %player% group set blue"
			set {BLUE.%player%} to true
			wait 3 seconds
			set the player's display name to "&7[&bBLUE&7] &7 %name of player%"
			set the player's tablist name to "&b%name of player%"
			stop

		if arf 1 is "red":
			broadcast "&b%player% dolaczyl do &cRED!"
			wait 1 second
			message "&aLoading preffix and suffix..."
			execute console command "pex user %player% group set red"
			set {RED.%player%} to true
			wait 3 seconds
			set the player's display name to "&7[&cRED&7] &7 %name of player%"
			set the player's tablist name to "&c%name of player%"
			stop

		if arg 1 is "REDsetspawn":
			if player has permission "red.setspawn":
				set {RED} to location of player
				stop

		if arg 1 is "BLUEsetspawn":
			if player has permission "blue.setspawn":
				set {BLUE} to location of player
				stop
		
on death:                                                  #\
	if player has permission "red.respawn":            # \
		teleport player to {RED}                   #  \
		stop                                       #   ) Ten kawałek kodu nie będzie działał na gracza z uprawnieniem '*'!
	if player has permission "blue.respawn":           #  /
		teleport player to {BLUE}                  # /
		stop                                       #/

on damage:
	if {RED.%attacker%} is {RED.%victim%}:
		message "&cBlad: &4PvP miedzy czlonkami gildii jest wylaczone!"
		cancel event
		stop
	if {BLUE.%attacker%} is {BLUE.%victim%}:
		message "&cBlad: &4PvP miedzy czlonkami gildii jest wylaczone!"
		cancel event
		stop

Jesli pomoglem daj Like.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...