ArdaSari#0130
variables:
{soygundurum.%player%} = 0
options:
bekleme: 5
prefix: &c&lBanka &8&l» &7
command /soygun:
trigger:
send "{@prefix}Hırsızlık Yetenekleri hakkında bilgi almak için &c/hyetenek"
send "{@prefix}ATM oluşturmak için &c/atm"
command /atm [<text>]:
permission: atm.admin
trigger:
if arg-1 is not set:
send "{@prefix}ATM oluşturmak için &c/atm olustur"
send "{@prefix}ATM'yi kaldırmak için &c/atm kaldir"
if arg-1 is "olustur":
if targeted block is sign:
set line 2 of targeted block to "&9[ATM]"
set line 3 of targeted block to "&a[Soyulmamis]"
set {atm.tabela.%location of targeted block%} to 1
else:
send "{@prefix}Bir tabelaya bakmalısın"
if arg-1 is "kaldir":
if targeted block is sign:
if {atm.tabela.%location of targeted block%} is set:
delete {atm.tabela.%location of targeted block%}
set line 2 of targeted block to ""
set line 3 of targeted block to ""
send "&7ATM başarıyla kaldırırldı"
else:
send "{@prefix}Bu bir atm değil !"
on right click on sign:
{atm.tabela.%location of clicked block%} is set:
line 2 of clicked block is "&9[ATM]":
if line 3 of the clicked block is "&a[Soyulmamis]":
set {soygundurum.%player%} to 1
apply blindness 30 to the player for 50 seconds
send player title "&aSoygun Başladı" with subtitle "&c&l▌"
set line 3 of the clicked block to "&c[Soyulmus]"
loop 200 times:
send ""
send "&8&l» &7ATM Soyuluyor..."
wait 2 seconds
if {soygundurum.%player%} is 1:
loop 200 times:
send ""
send "&a▌▌▌"
send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌"
wait 2 seconds
if {soygundurum.%player%} is 1:
loop 200 times:
send ""
send "&a▌▌▌▌▌▌"
send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌▌▌▌"
wait 2 seconds
if {soygundurum.%player%} is 1:
loop 200 times:
send ""
send "&a▌▌▌▌▌▌▌▌▌"
send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌▌▌▌▌▌▌"
wait 2 seconds
if {soygundurum.%player%} is 1:
loop 200 times:
send ""
send "&a▌▌▌▌▌▌▌▌▌▌▌▌"
send player title "&aSoygun devam ediyor" with subtitle "&c&l▌▌▌▌▌▌▌▌▌▌▌▌▌"
wait 2 seconds
if {soygundurum.%player%} is 1:
loop 200 times:
send ""
wait 2 second
send player title "&aSoygun Başarılı" with subtitle "&c&lHAHA PARALARRR"
if {soygundurum.%player%} is 1:
broadcast "&c%player% &7isimli oyuncu bankadaki ATM'yi başarı ile soydu !"
send "&7ATM Başarıyla Soyuldu !"
set {_x} to random integer between 0 and 1000
remove blindness from player
set {soygundurum.%player%} to 0
wait 5 seconds
set line 3 of the clicked block to "&a[Soyulmamis]"
else:
send "Bu ATM daha önce soyulmuş !"
on player move:
if {soygundurum.%player%} is 1:
cancel event
on command:
if {soygundurum.%player%} is 1:
send "{@prefix} &cSoygunda komut kullanamazsın."
cancel event
on chat:
if {soygundurum.%player%} is 1:
send "{@prefix} &c Soygun esnasında konuşamazsın"
cancel event
BlackKpoT#3087
on right click on a player with a tripwire hook:
if tool's name is "Kelepçe:
if {soygundurum.%clicked entity%} is 1:
send "&c%player% &fsizi yakaladı." to %clicked entity%
send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
set {soygundurum.%clicked entity%} to 0
else:
send "&c%clicked entity% &fbir soygunda değil." to player
on right click on a player:
if {soygundurum.%clicked entity%} is 1:
send "&c%player% &fsizi yakaladı." to %clicked entity%
send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
set {soygundurum.%clicked entity%} to 0
on right click on a player:
if player has permission "ben.polisim":
if {soygundurum.%clicked entity%} is 1:
send "&c%player% &fsizi yakaladı." to %clicked entity%
send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player
set {soygundurum.%clicked entity%} to 0
else:
send "&c%clicked entity% &fbir soygunda değil."
ArdaSari#0130
çok teşekkürler :)Güzel fikir aklıma şöyle bir şey geldi. Yumrukla sağ tıklayınca değil de bir eşya ile (mesela kelepçe yapabilirsiniz adını) sağ tıklayınca yakalayabilsin.
Eğer soygundurum 1 ise Kelepçe isimli tuzak kancası ile sağ tıklanan oyuncunun soygun durumunu 0'a çekecek. Ekleme yaparsın. Eğer soygun sırasında olmayan birine kelepçe ile sağ tıklanırsa oyuncunun soygunda olmadığını belirtecek. Sen denersin ben denemedim.
Kod:on right click on a player with a tripwire hook: if tool's name is "Kelepçe: if {soygundurum.%clicked entity%} is 1: send "&c%player% &fsizi yakaladı." to %clicked entity% send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player set {soygundurum.%clicked entity%} to 0 else: send "&c%clicked entity% &fbir soygunda değil." to player
Eğer kelepçesiz istersen buyur (Ama soygunda olmayan biri için durum mesajı yaparsak her oyuncu kelepçeleyebilecek. Eğer polis tarzı rütbeler vereceksen oyunculara perm ataması yapabilirsin.
İstediğin:
Kod:on right click on a player: if {soygundurum.%clicked entity%} is 1: send "&c%player% &fsizi yakaladı." to %clicked entity% send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player set {soygundurum.%clicked entity%} to 0
Permli ve soygunda olmadığını belirtebilen sk:
Kod:on right click on a player: if player has permission "ben.polisim": if {soygundurum.%clicked entity%} is 1: send "&c%player% &fsizi yakaladı." to %clicked entity% send "&c%clicked entity% &foyuncusunu kelepçelediniz." to player set {soygundurum.%clicked entity%} to 0 else: send "&c%clicked entity% &fbir soygunda değil."
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!