on place of TNT: set {_time} to hour*60 + minute if {_time} isn't between 720 and 1320: cancel event send "&7TNT dozwolone jest w godzinach od &c12:00 &7do &c22:00&7."
Każdy gracz może mieć w niej zawarte inne informacje. np. on join: if name of player is "skkf": set {kto::%player%} to "YouTube" if name of player is "martiner32": set {kto::%player%} to "Admin"
{zmienna} - zmienna globalna {zmienna::%player%} - Zmienna dla gracza (może być dla moba, bloku) {_zmienna} - zmienna tymczasowa, zostaje usuwana z pamięci po zakończeniu działania kodu
on damage: if attacker is holding diamond sword named "Excalibur": set damage to 20on damage: if attacker is a zombie: if name of attacker is "BoSS": set damage to damage*2
Teraz powinno działać command /nagroda: trigger: if player is in the region "tak" parsed as region: give 10 diamond to the playerNie potrzebny PirateSK. @down Mi działa. Może wgraj Skript 2.2
uprawnienia nie muszą być w "" Jeśli tak bardzo chcesz aby byl cudzysłow w tekscie to musisz go podwoić command /odblokuj: trigger: if player has permission "odblokuj.drop": execute console command "pex user %player% add ""drop.coal""" execute console command "pex user %player% add ""drop.zelazo""" execute console command "pex user %player% add ""drop.zloto""" execute console command "pex user %player% add ""drop.diamenty""" execute console command "pex user %player% add ""drop.emeraldy""" send "&a*&7Wszystkie dropy zostaly odblokowane!"