Skocz do zawartości
  • 0

Ustawianie hp w skrypcie na broń.


Masloid

Pytanie

otóż problem jest taki że mam taki kod:

command /bron [<text>]:
    permission: Ml.Query.bronie
    permission message: &cNie masz uprawnien!
    aliases: b
    trigger:
        if arg 1 is "AWP":
            give 1 {@weapon-type} named "&a&lAWP" to player
        else if arg 1 is "help":
            send "&3/bron <nazwa>" to player
            send "&2Dostepne bronie: " to player
            send "&aAWP" to player
        else:
            send "&4Poprawne uzycie: /bron <nazwa>"

on rightclick:
    if player's tool is {@weapon-type}:
        if name of player's tool is "&a&lAWP":
            shoot a fireball from player with speed 5

i nie wiem co zrobic aby ustawić ile Hp(serduszek) ma zabierać 1 strzał :/

Prosze o pomoc1

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on rightclick:
    if player's tool is {@weapon-type}:
        if name of player's tool is "&a&lAWP":
            shoot a fireball from player with speed 5
            set {dmg::%shot projectile%} to 5

on projectile hit:
  projectile is fireball:
    {dmg::%projectile%} is 5:
      set damage to 5

ew.
 

on damage:
  damage cause is projectile:
    {dmg::%damage cause%} is 5:
      set damage to 5

 

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...