- Katılım
- 26 Şubat 2020
- Mesajlar
- 88
- En iyi cevaplar
- 2
- Tepki puanı
- 16
- Puanları
- 1,080
Öncelik merhaba dostlar büğün sizlere
Ziyaretçiler için gizlenmiş link,görmek için
Giriş yapın veya üye olun.
için süreli vip verme skripti paylaşmak istedim test edemediğim için hata olabilir test edecek bir sunucum şuan olmadıgı için bu şekilde paylaşmak istedim umarım beğenir hoşunuza gider.
JavaScript:
command /sürelivip <text> <text> <text>:
permission: skript.surelivilverme
trigger:
if arg 1 is set:
if arg 2 is set:
if arg 3 is set:
# Oyuncu adını alın
set {_oyuncu} to arg 1
# Süreyi ve birimini alın (örneğin, "7d" veya "3w")
set {_sure} to arg 2
# Rütbe adını alın
set {_rutbe} to arg 3
# Rütbenin varlığını kontrol edin
if not "{_rutbe}" is in "{groups:%{_oyuncu}%}":
send "Hata: {_oyuncu} zaten {_rutbe} rütbesine sahip değil."
else:
# Oyuncuya rütbe verin
execute console command "lp user {_oyuncu} parent add {_rutbe} duration {_sure}"
send "{_oyuncu} artık {_rutbe} rütbesine sahip ve {_sure} boyunca aktif."
# Süre sonunda rütbeyi kaldırma görevi
wait {_sure} for seconds
execute console command "lp user {_oyuncu} parent remove {_rutbe}"
send "{_oyuncu}'nun {_rutbe} rütbesi süresi doldu."
else:
send "Hata: Rütbe adı belirtilmedi. Kullanım: /sürelivip <oyuncu_adı> <süre> <rütbe_adı>"
else:
send "Hata: Süre belirtilmedi. Kullanım: /sürelivip <oyuncu_adı> <süre> <rütbe_adı>"
else:
send "Hata: Oyuncu adı belirtilmedi. Kullanım: /sürelivip <oyuncu_adı> <süre> <rütbe_adı>"