wibonsue
Bir Kömür Göründü Kaptanım!
- Katılım
- 22 Haziran 2022
- Mesajlar
- 109
- Elmaslar
- 4
- Puan
- 6.610
- Konum
- Türkiye
- Minecraft
- wibonsue
Discord:
wibonsue#8862
arkadaşlar skript yaptım her damage vurunca hem kendisi hemde damage vurduğu kişinin 10 saniyeliğine komut kullanamamasını istiyorum
ayrıca kaç saniye kaldığını da action barda göstermesini fakat ne denediysem actionbar 10 saniyede kalıyor geri saymıyor. skriptim:
Not: Herhangi bir plugin önermeyin skript ile çözmem gereken bir konu bu maalesef :/
@Anemys Hocam siz anlarsınız
ayrıca kaç saniye kaldığını da action barda göstermesini fakat ne denediysem actionbar 10 saniyede kalıyor geri saymıyor. skriptim:
Kod:
on damage:
if victim is a player:
delete {_countdown::*}
wait 1 tick
set {_countdown::*} to 10
if {_countdown::*} is set:
loop 10 times:
wait 1 second
if {_countdown::*} > 0:
execute console command "actionbarmsg %victim% &b&lCombat Countdown: &7%{_countdown::*}% seconds left"
subtract 1 from {_countdown::*}
if {_countdown::*} is 0:
delete {_countdown::*}
exit loop
if attacker is a player:
delete {_countdown::*}
wait 1 tick
set {_countdown::*} to 10
if {_countdown::*} is set:
loop 10 times:
wait 1 second
if {_countdown::*} > 0:
execute console command "actionbarmsg %attacker% &b&lCombat Countdown: &7%{_countdown::*}% seconds left"
subtract 1 from {_countdown::*}
if {_countdown::*} is 0:
delete {_countdown::*}
exit loop
on command:
if {_countdown::*} is set:
if player doesn't have permission "combat.bypass":
send "&cYou cannot use this command while in combat!" to player
cancel event
Not: Herhangi bir plugin önermeyin skript ile çözmem gereken bir konu bu maalesef :/
@Anemys Hocam siz anlarsınız
