command surelifly:
permission: SimpleVIPPerks.vipucus
trigger:
set player's fly mode to true
message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!"
wait 30 second
set player's fly mode to false
message "&3Survival &8» &cSüren bitti. Fly kapatıldı!"
if komutlarından birisi olmalı.Ben bu skripti nasıl kullandıktan sonra 1 dk bekleyip tekrar kullanabilirsin koduna dönüştürebilirim?Kod:command surelifly: permission: SimpleVIPPerks.vipucus trigger: set player's fly mode to true message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!" wait 30 second set player's fly mode to false message "&3Survival &8» &cSüren bitti. Fly kapatıldı!"
command surelifly:
permission: SimpleVIPPerks.vipucus
trigger:
set player's fly mode to true
message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!"
wait 30 second
set player's fly mode to false
message "&3Survival &8» &cSüren bitti. Fly kapatıldı!"
every 1 minute:
trigger:
execute console command "surelifly"
repeat 30 times:
wait 1 second
Tam yazıyordum yeni aklıma gelmiştiKod:command surelifly: permission: SimpleVIPPerks.vipucus trigger: set player's fly mode to true message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!" wait 30 second set player's fly mode to false message "&3Survival &8» &cSüren bitti. Fly kapatıldı!" every 1 minute: trigger: execute console command "surelifly" repeat 30 times: wait 1 second
kod hatalıKod:command surelifly: permission: SimpleVIPPerks.vipucus trigger: set player's fly mode to true message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!" wait 30 second set player's fly mode to false message "&3Survival &8» &cSüren bitti. Fly kapatıldı!" every 1 minute: trigger: execute console command "surelifly" repeat 30 times: wait 1 second
[06:40:39 INFO]: [Skript] Reloading surelifly.sk...
[06:40:39 INFO]: Line 8: (surelifly.sk)
[06:40:39 INFO]: indentation error: expected 0 spaces, but found 8 spaces
[06:40:39 INFO]: Line: message "&3Survival &8» &cSüren bitti. Fly kapatildi!
"
[06:40:39 INFO]:
[06:40:39 INFO]: Line 6: (surelifly.sk)
[06:40:39 INFO]: invalid line - all code has to be put into triggers
[06:40:39 INFO]: Line: wait 30 second
[06:40:39 INFO]:
[06:40:39 INFO]: Line 7: (surelifly.sk)
[06:40:39 INFO]: invalid line - all code has to be put into triggers
[06:40:39 INFO]: Line: set player's fly mode to false
[06:40:39 INFO]:
[06:40:39 INFO]: Line 11: (surelifly.sk)
[06:40:39 INFO]: Can't understand this section: trigger
[06:40:39 INFO]: Line: trigger:
[06:40:39 INFO]:
[06:40:39 INFO]: [Skript] Encountered 4 errors while reloading surelifly.sk! (25
ms)
kod hatalı
command surelifly:
permission: SimpleVIPPerks.vipucus
trigger:
set player's fly mode to true
message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!"
wait 30 seconds
set player's fly mode to false
message "&3Survival &8» &cSüren bitti. Fly kapatıldı!"
on server start:
repeat every 60 seconds:
execute console command "surelifly"
Hocam bu server başlatıldığında konsoldan her 1 dakikada surelifly yazmıyor mu?Kod:command surelifly: permission: SimpleVIPPerks.vipucus trigger: set player's fly mode to true message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!" wait 30 seconds set player's fly mode to false message "&3Survival &8» &cSüren bitti. Fly kapatıldı!" on server start: repeat every 60 seconds: execute console command "surelifly"
Şimdi dene, olmazsa söyle.
[20:26:20 INFO]: [Skript] Reloading surelifly.sk...Kod:command surelifly: permission: SimpleVIPPerks.vipucus trigger: set player's fly mode to true message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!" wait 30 seconds set player's fly mode to false message "&3Survival &8» &cSüren bitti. Fly kapatıldı!" on server start: repeat every 60 seconds: execute console command "surelifly"
Şimdi dene, olmazsa söyle.
[20:26:20 INFO]: [Skript] Reloading surelifly.sk...
[20:26:20 INFO]: Line 10: (surelifly.sk)
[20:26:20 INFO]: Server start/stop events are actually called when Skript is
started or stopped. It is thus recommended to use 'on Skript start/stop' instea
d.
[20:26:20 INFO]: Line: on server start:
[20:26:20 INFO]:
[20:26:20 INFO]: Line 11: (surelifly.sk)
[20:26:20 INFO]: Can't understand this section: repeat every 60 seconds
[20:26:20 INFO]: Line: repeat every 60 seconds:
[20:26:20 INFO]:
[20:26:20 INFO]: [Skript] Encountered 1 error while reloading surelifly.sk! (15m
s)
hata
on script start:
repeat every 60 seconds:
set {fly_cooldown} to {}
command surelifly:
permission: SimpleVIPPerks.vipucus
trigger:
if {fly_cooldown::%player%} is set:
message "&cYou must wait before using this command again!"
else:
set {fly_cooldown::%player%} to true
set player's fly mode to true
message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!"
wait 1 second
repeat 30 times:
wait 1 second
if {fly_cooldown::%player%} is set:
set {fly_cooldown::%player%} to false
set player's fly mode to false
message "&3Survival &8» &cSüren bitti. Fly kapatıldı!"
stop
set {fly_cooldown::%player%} to false
set player's fly mode to false
message "&3Survival &8» &cSüren bitti. Fly kapatıldı!"
Yok ya, sanmıyorum. Ama kod hatalıymış zatenHocam bu server başlatıldığında konsoldan her 1 dakikada surelifly yazmıyor mu?
[13:05:48 INFO]: Line 1: (surelifly.sk)Kod:on script start: repeat every 60 seconds: set {fly_cooldown} to {} command surelifly: permission: SimpleVIPPerks.vipucus trigger: if {fly_cooldown::%player%} is set: message "&cYou must wait before using this command again!" else: set {fly_cooldown::%player%} to true set player's fly mode to true message "&3Survival &8» &eSüreli fly &a30 &esaniye boyunca aktif!" wait 1 second repeat 30 times: wait 1 second if {fly_cooldown::%player%} is set: set {fly_cooldown::%player%} to false set player's fly mode to false message "&3Survival &8» &cSüren bitti. Fly kapatıldı!" stop set {fly_cooldown::%player%} to false set player's fly mode to false message "&3Survival &8» &cSüren bitti. Fly kapatıldı!"
Valla şimdilik elimden gelen bu, hata çıkarsa söyle tekrar deneyeceğim xD
Yok ya, sanmıyorum. Ama kod hatalıymış zaten