ornek olarak verdim cunku bu cok goz ardi edilir afk hesap sokup kesedek lig puani kasarlar.5 saat cooldown mu?
Yok şey anlamında yapmaya çalıştığın sen 5 saat cooldown mu komuta?ornek olarak verdim cunku bu cok goz ardi edilir afk hesap sokup kesedek lig puani kasarlar.
Komuta degil ayni kisiye duel atamamasi bir sureyle.Yok şey anlamında yapmaya çalıştığın sen 5 saat cooldown mu komuta?
options:
cooldown: 5 hours
on command "duel":
if command sender is not player:
stop
set {_args::*} to command arguments split at " "
set {_target} to {_args::1} parsed as player
if {_target} is not set:
stop
set {_cooldownKey} to "%player's uuid%_%{_target}'s uuid%"
if {duel.cooldown::%{_cooldownKey}%} is set:
set {_timeLeft} to difference between {duel.cooldown::%{_cooldownKey}%} and now
if {_timeLeft} is more than 0 seconds:
send "&cBu oyuncuya bir daha düello teklifi gönderebilmek için %{_timeLeft}% beklemelisin!" to player
cancel event
stop
set {duel.cooldown::%{_cooldownKey}%} to now
add {@cooldown} to {duel.cooldown::%{_cooldownKey}%}
on server start:
delete {duel.cooldown::*}
Skript hatasız ama çalışmadı.Deneyebilirsin, çalışıp çalışmadığını yazarsan düzeltirim. Skript yüklü olan sunucu bulamadım bilgisayarda üşendim birazKod:options: cooldown: 5 hours on command "duel": if command sender is not player: stop set {_args::*} to command arguments split at " " set {_target} to {_args::1} parsed as player if {_target} is not set: stop set {_cooldownKey} to "%player's uuid%_%{_target}'s uuid%" if {duel.cooldown::%{_cooldownKey}%} is set: set {_timeLeft} to difference between {duel.cooldown::%{_cooldownKey}%} and now if {_timeLeft} is more than 0 seconds: send "&cBu oyuncuya bir daha düello teklifi gönderebilmek için %{_timeLeft}% beklemelisin!" to player cancel event stop set {duel.cooldown::%{_cooldownKey}%} to now add {@cooldown} to {duel.cooldown::%{_cooldownKey}%} on server start: delete {duel.cooldown::*}
function splitString(text: text, delimiter: text) :: strings:
set {_chars::*} to {_text} split at ""
set {_result::*} to ""
set {_current} to ""
loop {_chars::*}:
if loop-value equals {_delimiter}:
add {_current} to {_result::*}
set {_current} to ""
else:
set {_current} to "%{_current}%%loop-value%"
add {_current} to {_result::*}
return {_result::*}
options:
cooldown: 5 hours
on command "duel":
if command sender is not player:
stop
set {_args::*} to splitString(arguments, " ")
set {_target} to {_args::1} parsed as player
if {_target} is not set:
stop
set {_cooldownKey} to "%player's uuid%_%{_target}'s uuid%"
if {duel.cooldown::%{_cooldownKey}%} is set:
set {_timeLeft} to difference between {duel.cooldown::%{_cooldownKey}%} and now
if {_timeLeft} is more than 0 seconds:
send "&cBu oyuncuya bir daha düello teklifi gönderebilmek için %{_timeLeft}% beklemelisin!" to player
stop
set {duel.cooldown::%{_cooldownKey}%} to now
add {@cooldown} to {duel.cooldown::%{_cooldownKey}%}
on server start:
delete {duel.cooldown::*}
Mc kapattım ama acınca deneyecegim teşşekürler.Dener misinKod:function splitString(text: text, delimiter: text) :: strings: set {_chars::*} to {_text} split at "" set {_result::*} to "" set {_current} to "" loop {_chars::*}: if loop-value equals {_delimiter}: add {_current} to {_result::*} set {_current} to "" else: set {_current} to "%{_current}%%loop-value%" add {_current} to {_result::*} return {_result::*} options: cooldown: 5 hours on command "duel": if command sender is not player: stop set {_args::*} to splitString(arguments, " ") set {_target} to {_args::1} parsed as player if {_target} is not set: stop set {_cooldownKey} to "%player's uuid%_%{_target}'s uuid%" if {duel.cooldown::%{_cooldownKey}%} is set: set {_timeLeft} to difference between {duel.cooldown::%{_cooldownKey}%} and now if {_timeLeft} is more than 0 seconds: send "&cBu oyuncuya bir daha düello teklifi gönderebilmek için %{_timeLeft}% beklemelisin!" to player stop set {duel.cooldown::%{_cooldownKey}%} to now add {@cooldown} to {duel.cooldown::%{_cooldownKey}%} on server start: delete {duel.cooldown::*}
Ne demek çalışırsa yazarsınMc kapattım ama acınca deneyecegim teşşekürler.
Ne demek çalışırsa yazarsın
function splitString(text: text) :: strings:
set {_chars::*} to {_text} split at ""
set {_result::*} to ""
set {_current} to ""
loop {_chars::*}:
if "%loop-value%" = " ":
add {_current} to {_result::*}
set {_current} to ""
else:
set {_current} to "%{_current}%%loop-value%"
add {_current} to {_result::*}
return {_result::*}
options:
cooldown: 5 hours
on command "duel":
if command sender is not player:
stop
set {_args::*} to splitString(argument)
set {_target} to {_args::1} parsed as player
if {_target} is not set:
stop
set {_cooldownKey} to "%player's uuid%_%{_target}'s uuid%"
if {duel.cooldown::%{_cooldownKey}%} is set:
set {_timeLeft} to difference between {duel.cooldown::%{_cooldownKey}%} and now
if {_timeLeft} is more than 0 seconds:
send "&cBu oyuncuya bir daha düello teklifi gönderebilmek için %{_timeLeft}% beklemelisin!" to player
stop
set {duel.cooldown::%{_cooldownKey}%} to now
add {@cooldown} to {duel.cooldown::%{_cooldownKey}%}
on skript load:
delete {duel.cooldown::*}
Skript hatasız ama görevini yerine getirmiyor.Kod:function splitString(text: text) :: strings: set {_chars::*} to {_text} split at "" set {_result::*} to "" set {_current} to "" loop {_chars::*}: if "%loop-value%" = " ": add {_current} to {_result::*} set {_current} to "" else: set {_current} to "%{_current}%%loop-value%" add {_current} to {_result::*} return {_result::*} options: cooldown: 5 hours on command "duel": if command sender is not player: stop set {_args::*} to splitString(argument) set {_target} to {_args::1} parsed as player if {_target} is not set: stop set {_cooldownKey} to "%player's uuid%_%{_target}'s uuid%" if {duel.cooldown::%{_cooldownKey}%} is set: set {_timeLeft} to difference between {duel.cooldown::%{_cooldownKey}%} and now if {_timeLeft} is more than 0 seconds: send "&cBu oyuncuya bir daha düello teklifi gönderebilmek için %{_timeLeft}% beklemelisin!" to player stop set {duel.cooldown::%{_cooldownKey}%} to now add {@cooldown} to {duel.cooldown::%{_cooldownKey}%} on skript load: delete {duel.cooldown::*}
options:
cooldown: 5 hours
on command "duel":
if command sender is not player:
stop
set {_args::*} to arguments split at " "
if {_args::1} is not set:
stop
set {_target} to {_args::1} parsed as player
if {_target} is not set:
stop
if {_target} is player:
send "&cKendine düello atamazsın!" to player
stop
set {_cooldownKey} to "%player's uuid%_%{_target}'s uuid%"
if {duel.cooldown::%{_cooldownKey}%} is set:
set {_timeLeft} to difference between {duel.cooldown::%{_cooldownKey}%} and now
if {_timeLeft} is more than 0 seconds:
send "&cBu oyuncuya bir daha düello teklifi gönderebilmek için %{_timeLeft}% beklemelisin!" to player
stop
set {duel.cooldown::%{_cooldownKey}%} to now
add {@cooldown} to {duel.cooldown::%{_cooldownKey}%}
on skript load:
delete {duel.cooldown::*}
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!