BilalTrkmn
Odunlara Vur Vur Vur!
- Katılım
- 5 Mayıs 2018
- Mesajlar
- 44
- Elmaslar
- 5
- Puan
- 3.750
- Minecraft
- BilalTrkmn
Discord:
乇丂 ❄ ' ʙᴛ.£x£#6316
乇丂 ❄ ' ʙᴛ.£x£#6316
乇丂 ❄ ' ʙᴛ.£x£#6316
variables:
{test.test} = 0
command /nether:
trigger:
if player's money is greater or equal to 500:
give player 1 paper named "&cCehennem Bileti"
execute console command "eco take %player% 500"
send "&eAlındı"
on rightclick with paper:
if tool's name is "&cCehennem Bileti":
remove 1 paper named "&cCehennem Bileti" from player
send "&cTeleportlanıyorsun"
set {deneme.%player%} to location of player
wait 0.5 second
teleport player to {test.test}
wait 10 minute
teleport player to {deneme.%player%}
set {test.%player%} to 0
command /set:
permission: op.op
trigger:
set {test.test} to location of player
send "&cAyarlandı"
!?мυѕтαғα öɴcel#8713
tam istedigin gibi oldu ama malesef tp şeyini halledemedim netherda bi yere /set yaz yeterKod:variables: {test.test} = 0 command /nether: trigger: if player's money is greater or equal to 500: give player 1 paper named "&cCehennem Bileti" execute console command "eco take %player% 500" send "&eAlındı" on rightclick with paper: if tool's name is "&cCehennem Bileti": remove 1 paper named "&cCehennem Bileti" from player send "&cTeleportlanıyorsun" set {deneme.%player%} to location of player wait 0.5 second teleport player to {test.test} wait 10 minute teleport player to {deneme.%player%} set {test.%player%} to 0 command /set: permission: op.op trigger: set {test.test} to location of player send "&cAyarlandı"
function kontrol(p: player):
if world of {_p} is "world_nether"
if {biletDurumu::%{_p}%} is not true:
teleport {_p} to {oncekiLokasyon::%{_p}%}
delete {oncekiLokasyon::%{_p}%}
send "&cNether Bileti süren bittiği için, önceki konumuna ışınlandın." to {_p}
on player world change:
kontrol(player)
if event-world is "world_nether":
if {biletDurumu::%player%} is not true:
cancel event
send "&cNether'a giriş için Nether Bileti aktif etmelisin!"
on join:
kontrol(player)
command /biletal:
permission: skript.admin
trigger:
give a paper named "&5Nether Bileti" to player
on rightclick with a paper named "&5Nether Bileti":
cancel event
kontrol(player)
if {biletDurumu::%player%} is true:
add 10 to {biletDakika::%player%}
send "&aBilet süresi uzatıldı! (&6%{biletDakika::%player%}% &adakika)"
stop
remove a paper named "&5Nether Bileti" from player
set {biletDurumu::%player%} to true
set {biletDakika::%player%} to 10
set {oncekiLokasyon::%player%} to location of player
teleport player to spawn point of world "world_nether"
send "&aNether'a giriş yaptın! Şu andan itibaren 10 dakika süren var. Süreyi daha fazla bilet kullanarak arttırabilirsin!"
every 1 seconds:
if {minuteTimer} >= 60:
delete {minuteTimer}
loop {biletDakika::*}:
if {biletDakika::%loop-index%} <= 0:
delete {biletDakika::%loop-index%}
delete {biletDurumu::%loop-index%}
continue
remove 1 from {biletDakika::%loop-index%}
add 1 to {minuteTimer}
loop players:
kontrol(loop-player)
Tower02#5024
Elinize sağlıkIşınlandıktan sonra oyundan çıkar ise o dünyada kalacaktır, bunun dışında o sırada sunucu resetlenirse de aynı şey geçerli. Wait sağlıklı değil. Bunun dışında eco take yerine Skript'in kendi vault desteğini kullanmalısın.
Konuya gelecek olursam, tpdeny sethome gibi komutları teker teker yasaklamak yerine direk on teleport veya on world change eventlerini iptal edebiliriz. Bunu deneyebilirsiniz:
JavaScript:function kontrol(p: player): if world of {_p} is "world_nether" if {biletDurumu::%{_p}%} is not true: teleport {_p} to {oncekiLokasyon::%{_p}%} delete {oncekiLokasyon::%{_p}%} send "&cNether Bileti süren bittiği için, önceki konumuna ışınlandın." to {_p} on player world change: kontrol(player) if event-world is "world_nether": if {biletDurumu::%player%} is not true: cancel event send "&cNether'a giriş için Nether Bileti aktif etmelisin!" on join: kontrol(player) command /biletal: permission: skript.admin trigger: give a paper named "&5Nether Bileti" to player on rightclick with a paper named "&5Nether Bileti": cancel event kontrol(player) if {biletDurumu::%player%} is true: add 10 to {biletDakika::%player%} send "&aBilet süresi uzatıldı! (&6%{biletDakika::%player%}% &adakika)" stop remove a paper named "&5Nether Bileti" from player set {biletDurumu::%player%} to true set {biletDakika::%player%} to 10 set {oncekiLokasyon::%player%} to location of player teleport player to spawn point of world "world_nether" send "&aNether'a giriş yaptın! Şu andan itibaren 10 dakika süren var. Süreyi daha fazla bilet kullanarak arttırabilirsin!" every 1 seconds: if {minuteTimer} >= 60: delete {minuteTimer} loop {biletDakika::*}: if {biletDakika::%loop-index%} <= 0: delete {biletDakika::%loop-index%} delete {biletDurumu::%loop-index%} continue remove 1 from {biletDakika::%loop-index%} add 1 to {minuteTimer} loop players: kontrol(loop-player)
xMargue#1881
Işınlandıktan sonra oyundan çıkar ise o dünyada kalacaktır, bunun dışında o sırada sunucu resetlenirse de aynı şey geçerli. Wait sağlıklı değil. Bunun dışında eco take yerine Skript'in kendi vault desteğini kullanmalısın.
Konuya gelecek olursam, tpdeny sethome gibi komutları teker teker yasaklamak yerine direk on teleport veya on world change eventlerini iptal edebiliriz. Bunu deneyebilirsiniz:
JavaScript:function kontrol(p: player): if world of {_p} is "world_nether" if {biletDurumu::%{_p}%} is not true: teleport {_p} to {oncekiLokasyon::%{_p}%} delete {oncekiLokasyon::%{_p}%} send "&cNether Bileti süren bittiği için, önceki konumuna ışınlandın." to {_p} on player world change: kontrol(player) if event-world is "world_nether": if {biletDurumu::%player%} is not true: cancel event send "&cNether'a giriş için Nether Bileti aktif etmelisin!" on join: kontrol(player) command /biletal: permission: skript.admin trigger: give a paper named "&5Nether Bileti" to player on rightclick with a paper named "&5Nether Bileti": cancel event kontrol(player) if {biletDurumu::%player%} is true: add 10 to {biletDakika::%player%} send "&aBilet süresi uzatıldı! (&6%{biletDakika::%player%}% &adakika)" stop remove a paper named "&5Nether Bileti" from player set {biletDurumu::%player%} to true set {biletDakika::%player%} to 10 set {oncekiLokasyon::%player%} to location of player teleport player to spawn point of world "world_nether" send "&aNether'a giriş yaptın! Şu andan itibaren 10 dakika süren var. Süreyi daha fazla bilet kullanarak arttırabilirsin!" every 1 seconds: if {minuteTimer} >= 60: delete {minuteTimer} loop {biletDakika::*}: if {biletDakika::%loop-index%} <= 0: delete {biletDakika::%loop-index%} delete {biletDurumu::%loop-index%} continue remove 1 from {biletDakika::%loop-index%} add 1 to {minuteTimer} loop players: kontrol(loop-player)
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!