Skocz do zawartości
  • 0

Wysyłanie itemów do innego gracza


SeksiakQba
 Udostępnij

Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /daj [<player>]:
	trigger:
		if player has permission "admin.*":
  			if player's tool is not AIR:
  				if arg 1 is set:
  					give player's tool to arg 1
  					send "&4&oPrzekazano przedmiot"
  					send "&4&oDostales przedmiot od %player%" to arg 1
				else:
					send "&4&oPodaj gracza!"
  			else:
				send "&4&oNie mozesz dac komus powietrza!"
  		else:
  			send "&4&oBrak uprawnien!"
  		

licze na naj

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 minuty temu, KGaZ napisał:

command /daj [<player>]:
	trigger:
		if player has permission "admin.*":
  			if player's tool is not AIR:
  				if arg 1 is set:
  					give player's tool to arg 1
  					send "&4&oPrzekazano przedmiot"
  					send "&4&oDostales przedmiot od %player%" to arg 1
				else:
					send "&4&oPodaj gracza!"
  			else:
				send "&4&oNie mozesz dac komus powietrza!"
  		else:
  			send "&4&oBrak uprawnien!"
  		

licze na naj

 

Twój skrypt ma błędy :)
1. Nie odbiera itemów
2. A co jeżeli gracz chce wysłać np. jeden diax, uzywając tej komendy, wyśle wszystkie diaxy ze slota...

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /daj [<player>]:
	trigger:
		if player's tool is not AIR:
			if arg 1 is not player:
				give 1 of player's tool to arg 1
				remove 1 of player's tool from player
				send "&2&o&lPrzekazano przedmiot"
				send "&2&o&lDostales przedmiot od %player%" to arg 1
			else:
				send "&4Blad:&c&oPodaj Gracza!"
		else:
			send "&4Blad:&c&oNie mozesz dac komus powietrza!"

			

lekko poprawiony kodzik pana @up ale mu sie nalezy naj i like bo to on wykonal dobrze komende niebyło zabardzo opisane wiec mógl tak pomyslec :)

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler

command /daj [<player>]:
    trigger:
        if argument 1 is set:
            if player's tool is not AIR:
                give 1 of player's tool to argument 1
                remove 1 of player's tool from player
                send "&aOddales swoj przedmiot uzytkownikowi: &c%argument 1%"
                send "&cDostales przedmiot od &a%player%" to argument 1
                stop
            else:
                send "&c&oTen przedmiot jest powietrzem!"
                stop
        else:
            send "&c&oPodaj nick odbiorcy!"
            stop

Proszę.

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