on damage:
if victim is a player:
loop all items in victim's inventory:
if loop-item is sign:
if name of loop-item contains "&6Tarcza":
chance of 100.0%:
cancel event
send "&4Zablokowales cios" to the victim
send "&4&lTypeczek posiada tarcze zablokowal cios" to the attacker
stop
Pytanie
Smoczek111 30
Witam otoz mam 2 bledy juz probowalem naprawiac ale bez skutku oto bledy https://zapodaj.net/d5a80d5d2347f.png.html
Oto kod:
on damage:
if victim is a player:
loop all items in victim's inventory:
if loop-item is sign:
if name of loop-item contains "&6Tarcza":
chance of 100.0%:
cancel event
send "&4Zablokowales cios" to the victim
send "&4&lTypeczek posiada tarcze zablokowal cios" to the attacker
stop
Odnośnik do komentarza
https://skript.pl/temat/20517-niedziala/Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi