GoktugBeyHD
Somon Balığı Selam Vermeye Geldi
- Katılım
- 3 Ekim 2018
- Mesajlar
- 14
- Elmaslar
- 2
- Puan
- 13.260
- Yaş
- 26
options:
prefix: &6&lSKYBLOCK &8&l►
function adaReklamGUI(p: player, page: number):
set {_uuid} to uuid of {_p}
set {_i} to {_page} * 45
set {_ii} to {_i} - 45
open virtual chest inventory with size 6 named "&8Ada Reklamları (Sayfa %{_page}%)" to {_p}
loop {adareklam::*}:
if {_iii} is not set:
set {_iii} to 0
else:
add 1 to {_iii}
if {_ii} = 0:
if {_iii} <= {_i}:
set {_cooldown} to difference between {adareklam::%loop-index%} and now
set {_cooldown} to "%difference between 24 hours and {_cooldown}%"
replace all ", ", " and " with " " in {_cooldown}
replace all "seconds", "second" with "saniye" in {_cooldown}
replace all "minutes", "minute" with "dakika" in {_cooldown}
replace all "hours", "hour" with "saat" in {_cooldown}
replace all "days", "day" with "gün" in {_cooldown}
set {_split::*} to split {_cooldown} at "."
set {_splitt::*} to split {_split::2} at " "
set {_cooldown} to "%{_split::1}% %{_splitt::2}%"
set {_leader} to asb team leader of team of {_p}
set {_members::*} to " &7%asb team members of team of {_p}%"
set {_size} to size of asb team members of team of {_p}
if "%{_leader}%" is "<none>":
set {_leader} to "&eTakım bulunamadı."
if " &7%{_members::*}%" is "<none>":
set {_members::*} to "&eTakım bulunamadı."
else:
replace all " and ", ", " with "|| &7" in {_members::*}
if "%{_size}%" is "<none>":
set {_size} to "0"
make gui slot {_iii} of {_p} with skull of (loop-index parsed as offlineplayer) named "&a%(loop-index parsed as offlineplayer)%" with lore "&7||&7Ada Lideri: &e%{_leader}%||&7Takım Üye Sayısı: &e%{_size}%||&7||&7Süre: &a%{_cooldown}%||&7||&fAda Üyeleri:||%{_members::*}%||&7||&e&nIşınlanmak için tıkla!" to close then run {_p} command "is warp %(loop-index parsed as offlineplayer)%"
else if {_iii} > {_ii}:
if {_iii} <= {_i}:
make gui slot {_iii} of {_p} with skull of (loop-index parsed as offlineplayer) named "&a%(loop-index parsed as offlineplayer)%" with lore "&7||&7Ada Lideri: &e%{_leader}%||&7Takım Üye Sayısı: &e%{_size}%||&7||&7Süre: &a%{_cooldown}%||&7||&fAda Üyeleri:||%{_members::*}%||&7||&e&nIşınlanmak için tıkla!" to close then run {_p} command "is warp %(loop-index parsed as offlineplayer)%"
if {_ii} > 0:
make gui slot 45 of {_p} with arrow named "&eÖnceki Sayfa" to run:
close inventory of player
adaReklamGUI({_p}, {_page} + 1)
if size of {adareklam::*} > 45:
make gui slot 53 of {_p} with arrow named "&eSonraki Sayfa" to run:
close inventory of player
adaReklamGUI({_p}, {_page} - 1)
every 1 minutes:
loop {adareklam::*}:
set {_cooldown} to difference between {adareklam::%loop-index%} and now
if {_cooldown} is greater than or equal to 24 hours:
delete {adareklam::%loop-index%}
delete {adareklamisim::%loop-index%}
on command "/adareklamver":
cancel event
if player has an asb island:
set {_cooldown} to difference between {adareklam::%player's uuid%} and now
if {_cooldown} is less than 24 hours:
send "{@prefix} &eAda reklamınız zaten mevcut."
else:
if player's balance >= 1000:
remove 1000 from player's balance
send "{@prefix} &d1,000 TL &eVererek Başarıyla Adanızın Reklamını Verdiniz."
set {adareklam::%player's uuid%} to now
else:
send "{@prefix} &eÜzgünüm, yetersiz bakiye."
else:
send "{@prefix} &eAda Reklamı Vermek İçin Adanız Olmalı."
on command "adareklam":
cancel event
adaReklamGUI(player, 1)
Şöyle veriyim hocam
prefix: &6&lSKYBLOCK &8&l►
function adaReklamGUI(p: player, page: number):
set {_uuid} to uuid of {_p}
set {_i} to {_page} * 45
set {_ii} to {_i} - 45
open virtual chest inventory with size 6 named "&8Ada Reklamları (Sayfa %{_page}%)" to {_p}
loop {adareklam::*}:
if {_iii} is not set:
set {_iii} to 0
else:
add 1 to {_iii}
if {_ii} = 0:
if {_iii} <= {_i}:
set {_cooldown} to difference between {adareklam::%loop-index%} and now
set {_cooldown} to "%difference between 24 hours and {_cooldown}%"
replace all ", ", " and " with " " in {_cooldown}
replace all "seconds", "second" with "saniye" in {_cooldown}
replace all "minutes", "minute" with "dakika" in {_cooldown}
replace all "hours", "hour" with "saat" in {_cooldown}
replace all "days", "day" with "gün" in {_cooldown}
set {_split::*} to split {_cooldown} at "."
set {_splitt::*} to split {_split::2} at " "
set {_cooldown} to "%{_split::1}% %{_splitt::2}%"
set {_leader} to asb team leader of team of {_p}
set {_members::*} to " &7%asb team members of team of {_p}%"
set {_size} to size of asb team members of team of {_p}
if "%{_leader}%" is "<none>":
set {_leader} to "&eTakım bulunamadı."
if " &7%{_members::*}%" is "<none>":
set {_members::*} to "&eTakım bulunamadı."
else:
replace all " and ", ", " with "|| &7" in {_members::*}
if "%{_size}%" is "<none>":
set {_size} to "0"
make gui slot {_iii} of {_p} with skull of (loop-index parsed as offlineplayer) named "&a%(loop-index parsed as offlineplayer)%" with lore "&7||&7Ada Lideri: &e%{_leader}%||&7Takım Üye Sayısı: &e%{_size}%||&7||&7Süre: &a%{_cooldown}%||&7||&fAda Üyeleri:||%{_members::*}%||&7||&e&nIşınlanmak için tıkla!" to close then run {_p} command "is warp %(loop-index parsed as offlineplayer)%"
else if {_iii} > {_ii}:
if {_iii} <= {_i}:
make gui slot {_iii} of {_p} with skull of (loop-index parsed as offlineplayer) named "&a%(loop-index parsed as offlineplayer)%" with lore "&7||&7Ada Lideri: &e%{_leader}%||&7Takım Üye Sayısı: &e%{_size}%||&7||&7Süre: &a%{_cooldown}%||&7||&fAda Üyeleri:||%{_members::*}%||&7||&e&nIşınlanmak için tıkla!" to close then run {_p} command "is warp %(loop-index parsed as offlineplayer)%"
if {_ii} > 0:
make gui slot 45 of {_p} with arrow named "&eÖnceki Sayfa" to run:
close inventory of player
adaReklamGUI({_p}, {_page} + 1)
if size of {adareklam::*} > 45:
make gui slot 53 of {_p} with arrow named "&eSonraki Sayfa" to run:
close inventory of player
adaReklamGUI({_p}, {_page} - 1)
every 1 minutes:
loop {adareklam::*}:
set {_cooldown} to difference between {adareklam::%loop-index%} and now
if {_cooldown} is greater than or equal to 24 hours:
delete {adareklam::%loop-index%}
delete {adareklamisim::%loop-index%}
on command "/adareklamver":
cancel event
if player has an asb island:
set {_cooldown} to difference between {adareklam::%player's uuid%} and now
if {_cooldown} is less than 24 hours:
send "{@prefix} &eAda reklamınız zaten mevcut."
else:
if player's balance >= 1000:
remove 1000 from player's balance
send "{@prefix} &d1,000 TL &eVererek Başarıyla Adanızın Reklamını Verdiniz."
set {adareklam::%player's uuid%} to now
else:
send "{@prefix} &eÜzgünüm, yetersiz bakiye."
else:
send "{@prefix} &eAda Reklamı Vermek İçin Adanız Olmalı."
on command "adareklam":
cancel event
adaReklamGUI(player, 1)
Şöyle veriyim hocam