on first join:
set {KullanmaIzni.%player%} to true
command /f <text>:
trigger:
if arg 1 is "tag":
if {KullanmaIzni.%player%} is true:
send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
set {KullanmaIzni.%player%} to false
wait 10 real minutes
set {KullanmaIzni.%player%} to true
stop
if {KullanmaIzni.%player%} is false:
cancel event
send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
stop
/f olması lazım.Buyur Kardeşim
Kod:on first join: set {KullanmaIzni.%player%} to true command f <text>: trigger: if {KullanmaIzni.%player%} is true: send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player set {KullanmaIzni.%player%} to false wait 10 real minutes set {KullanmaIzni.%player%} to true stop if {KullanmaIzni.%player%} is false: cancel event send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player stop
doğru/f olması lazım.
A command event cannot be cancelled (faction.sk, line 13: cancel event')Buyur Kardeşim
Kod:on first join: set {KullanmaIzni.%player%} to true command /f <text>: trigger: if arg 1 is "tag": if {KullanmaIzni.%player%} is true: send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player set {KullanmaIzni.%player%} to false wait 10 real minutes set {KullanmaIzni.%player%} to true stop if {KullanmaIzni.%player%} is false: cancel event send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player stop
bu event iptal edilemez diyo ama edilmesi gerek .A command event cannot be cancelled (faction.sk, line 13: cancel event')
Bu Hatayı Alıyorum?
Çünkü komutlar iptal edilemez. Command yazısını on command ile değiştirin.bu event iptal edilemez diyo ama edilmesi gerek .
can't understand this condition: 'trigger' (faction.sk, line 4: trigger:')Çünkü komutlar iptal edilemez. Command yazısını on command ile değiştirin.
on first join:
set {izin.%player%} to true
on command "/f <text>":
trigger:
if arg 1 is "tag":
if {izin.%player%} is true:
send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
set {izin.%player%} to false
wait 10 real minutes
set {izin.%player%} to true
stop
if {izin.%player%} is false:
cancel event
send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
stop
set {_difference} to difference between {izin.%player%} and now
if {_difference} is less than 10 minutes:
set {_difference} to difference between {_difference} and 10 minutes
message "Bu komutu kullanmak için %{_difference}% süre beklemelisin. "
On command'a trigger koyamazsın. Onu kaldır ve tabları düzelt.can't understand this condition: 'trigger' (faction.sk, line 4: trigger:')
Kod:on first join: set {izin.%player%} to true on command "/f <text>": trigger: if arg 1 is "tag": if {izin.%player%} is true: send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player set {izin.%player%} to false wait 10 real minutes set {izin.%player%} to true stop if {izin.%player%} is false: cancel event send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player stop
Hata Almadım fakat sürede bekletmiyor?On command'a trigger koyamazsın. Onu kaldır ve tabları düzelt.
on first join:
set {izin.%player%} to true
on command "/f <text>":
if arg 1 is "tag":
if {izin.%player%} is true:
send "&cBu Komutu 10 Dakika Daha Kullanamassin !" to player
set {izin.%player%} to false
wait 10 real minutes
set {izin.%player%} to true
stop
if {izin.%player%} is false:
cancel event
send "Bu Komutu 10 Dakika Ara Ile Bir Kullanabilirsin !" to player
stop
Skriptten Anlamıyorum Fazla, Birleştirebilirmisin Sen?@Avioteto
Cooldown kullanırken "wait x seconds" kullanmayın sunucu kapanırsa gider ayrıca ne kadar zaman kaldığını gösteremeziniz.
bu kod sayesinde hem ne kadar süre kaldığını gösterirsiniz hem de reloaddan sonra gitmezKod:set {_difference} to difference between {izin.%player%} and now if {_difference} is less than 10 minutes: set {_difference} to difference between {_difference} and 10 minutes message "Bu komutu kullanmak için %{_difference}% süre beklemelisin. "
on command "/f tag":
set {_difference} to difference between {izin.%player%} and now
if {_difference} is less than 10 minutes:
set {_difference} to difference between {_difference} and 10 minutes
message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."
cancel event
indentation error: expected 4 spaces, but found 16 spaces (faction.sk, line 3: if {_difference} is less than 10 minutes:')Çalışması lazım.Kod:on command "/f tag": set {_difference} to difference between {izin.%player%} and now if {_difference} is less than 10 minutes: set {_difference} to difference between {_difference} and 10 minutes message "Bu komutu kullanmak için %{_difference}% süre beklemelisin." cancel event
indentation error: expected 4 spaces, but found 16 spaces (faction.sk, line 3: if {_difference} is less than 10 minutes:')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 4: set {_difference} to difference between {_difference} and 10 minutes')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 5: message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."')
indentation error: expected 4 spaces, but found 24 spaces (faction.sk, line 6: cancel event')
on command "/f tag":
set {_difference} to difference between {izin.%player%} and now
{_difference} is less than 10 minutes
set {_difference} to difference between {_difference} and 10 minutes
message "Bu komutu kullanmak için %{_difference}% süre beklemelisin."
cancel event
Hata Yok, Fakat Ard Arda YazdırıyorKod:on command "/f tag": set {_difference} to difference between {izin.%player%} and now {_difference} is less than 10 minutes set {_difference} to difference between {_difference} and 10 minutes message "Bu komutu kullanmak için %{_difference}% süre beklemelisin." cancel event