Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Proszę o naprawienie paru linijek w skrypcie


koslsjshshs

Rekomendowane odpowiedzi

Opublikowano
options:
cash_creative: 1000 #Kasa za Creative
variables:
{points::%player%} = 0
    
on break of stone:
add 45 to {points::%player%}
on death of player:
attacker is a player:
add 25 to {points::%player%}
command /pkt:
trigger:
if {points::%player%} is set:
send "&7Twoje punkty: &6%{points::%player%}%"
else:
send "&cBrak punktów :("
command /punkty:
trigger:
if {points::%player%} is set:
send "&7Twoje punkty: &6%{points::%player%}%"
else:
send "&cBrak punktów :("
on right click with nether star:
open chest with 6 rows named "&3Nether Shop" to player
wait 3 ticks
format slot 0 of player with 1 of Stone named "&2Creative" to close then run [execute player command "sklep"]
command /sklep:
trigger:
if {_kasa} >= 1000:
execute console command "gm 1 %player%"
send "&aZakupiles Creative"
Add -1000 to {points::%player%}

Witam mam taki problem że jak ktoś kupi sobie gamemode to odejmuje mu nawet jak ma 0 pkt i daje pkt i ma -1000 pkt

Opublikowano
options:
    cash_creative: 1000 #Kasa za Creative
variables:
    {points::%player%} = 0
    
on break of stone:
    add 45 to {points::%player%}
on death of player:
    attacker is a player:
        add 25 to {points::%player%}
command /pkt:
    trigger:
        if {points::%player%} is set:
            send "&7Twoje punkty: &6%{points::%player%}%"
        else:
            send "&cBrak punktów :("
command /punkty:
    trigger:
        if {points::%player%} is set:
            send "&7Twoje punkty: &6%{points::%player%}%"
        else:
            send "&cBrak punktów :("
on right click with nether star:
    open chest with 6 rows named "&3Nether Shop" to player
    wait 3 ticks
    format slot 0 of player with 1 of Stone named "&2Creative" to close then run [execute player command "sklep"]
command /sklep:
    trigger:
        if {points::%player%} is greater than 1000:
            execute console command "gm 1 %player%"
            send "&aZakupiles Creative"
            remove 1000 from {points::%player%}
        else:
            send "&cBrak monet :("

­

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...