Tam gdzie gracz ustawia bazę, robisz zmienna ustawiającą lokalizacje bazy prawda? To przy komendzie do powiększania musisz dodać warunek
if {twoja zmienna} is location of player
I Ty to zgłaszasz na konkurs... Niecałe 50 linijek, ale jak tocjest twój pierwszy skrypt (pisany z pomocą forum) to troche mały, ale pomysł ciekawy. Rozwijaj go dalej
Dodajesz:
if player has permission "permisja":
command /lobby:
trigger:
if player has permission "spawn.lobby":
teleport player to spawn
@DOWN
W tym przypadku tak
Nie rozumiem po co tutaj uprawnienia, ale ok
Hologramy USUWAJĄ się, ponieważ są obiektami. Próbowałem zapisywać je do zmiennych i przy każdym wejściu gracza odczytywać je i przekazywać na hologram
<p>command /miejsce:</p>
<p> trigger:</p>
<p> if player has permission "*":</p>
<p> set {miejsce} to location of the player</p>
<p> send "&7Ustawiles spawn dla druzyn!"</p>
<p> else:</p>
<p> send "&7Nie masz uprawnien!"</p>
<p> </p>
<div>command /wyjdz:</div>
<div> trigger:</div>
<div> if {dr.%player%} is set:</div>
<div> broadcast "&7Gracz %player% opuscil druzyne %{dr.%player%}%!"</div>
<div> delete {dr.%player%}</div>
<div> teleport player to {miejsce}</div>
<div> else:</div>
<div> send "&7Nie masz druzyny!"</div>
<div> </div>
<div>@EDIT</div>
<div>
<pre class="_prettyXprint">
command /miejsce [<text>]:
trigger:
if arg 1 is not set:
send "&7Uzycie: /miejsce <red|blue>"
if arg 1 is "red":
set {dr.red} to location of the player
send "&7Ustawiles spawn dla druzyny red!"
if arg 1 is "blue":
set {dr.blue} to location of the player
send "&7Ustawiles spawn dla druzyny blue!"
command /spawn:
trigger:
if {dr.%player%} is not set:
send "&7Nie masz druzyny!"
if {dr.%player%} is "red":
teleport player to {dr.red}
if {dr.%player%} is "blue":
teleport player to {dr.blue}
</pre>
<p> </p>
</div>
<div> </div>
<div> </div>
masz z komendami command /dolacz [<text>]: trigger: if arg 1 is set: if {dr.%player%} is not set: if arg 1 is "red" or "blue": set {dr.%player%} to "%arg 1%" broadcast "&7Gracz %player% wybral druzyne %arg 1%!" else: send "&7Istnieja druzyny: red oraz blue!" else: send "&7Jestes juz w druzynie!" else: send "&7Uzycie: /dolacz <red|blue>"command /wyjdz: trigger: if {dr.%player%} is set: broadcast "&7Gracz %player% opuscil druzyne %{dr.%player%}%!" delete {dr.%player%} else: send "&7Nie jestes w zadnej druzynie!"on damage: if {dr.%attacker%} is {dr.%victim%}: cancel event send "&7Nie mozesz bic %victim%!"