Skocz do zawartości
  • 0

Psycho1337
 Udostępnij

Pytanie

#Klata Elfiego Wladcy
on sharpsk armor equip:
	if player's tool is {@m4bchest}:
		add 2 to {health.%player%}
		wait a tick
		set the maxinum health of the player to {health.%player%}

on sharpsk armor unequip:
	if player's tool is {@m4bchest}:
		remove 2 from {health.%player%}
		wait a tick
		set the maxinum health of the player to {health.%player%}

Wyskakują 2 errory, po prostu nie rozumie set the maximum health of the player to {health.%player%} ma ktos jakies pomysly jak to naprawic? Z gory dzieki :D

Odnośnik do komentarza
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on sharpsk armor equip:
	if player's tool is {@m4bchest}:
		add 2 to {health.%player%}
		wait a tick
		set max health of player to {health.%player%}
on sharpsk armor unequip:
	if player's tool is {@m4bchest}:
		remove 2 from {health.%player%}
		wait a tick
		set max health of player to {health.%player%}

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 godziny temu, xAxee napisał:

on sharpsk armor equip:
	if player's tool is {@m4bchest}:
		add 2 to {health.%player%}
		wait a tick
		set max health of player to {health.%player%}
on sharpsk armor unequip:
	if player's tool is {@m4bchest}:
		remove 2 from {health.%player%}
		wait a tick
		set max health of player to {health.%player%}

 

Coś się buguje, nie działa do końca poprawnie. Mianowicie, jeśli zakładasz zbrojkę na siebie, to ona się duplikuje, a potem mając jedną na sobie, a drugą w ręcę, gdy klikasz cały czas prawym na nią, żeby ją założyć, to serca dodają się w nieskończoność.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, Psycho1337 napisał:

Coś się buguje, nie działa do końca poprawnie. Mianowicie, jeśli zakładasz zbrojkę na siebie, to ona się duplikuje, a potem mając jedną na sobie, a drugą w ręcę, gdy klikasz cały czas prawym na nią, żeby ją założyć, to serca dodają się w nieskończoność.

on sharpsk armor equip:
    if event-item is {@m4bchest}:
        add 1 to player's max health 
on sharpsk armor unequip:
    if event-item is {@m4bchest}:
        remove 1 from player's max health
#Sprawdzaj bez gma i opa

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, xAxee napisał:

on sharpsk armor equip:
    if event-item is {@m4bchest}:
        add 1 to player's max health 
on sharpsk armor unequip:
    if event-item is {@m4bchest}:
        remove 1 from player's max health
#Sprawdzaj bez gma i opa

 

Działa, dzięki wielkie! :D

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