- Katılım
- 10 Kas 2019
- Konular
- 30
- Mesajlar
- 72
- Tepki puanı
- 150
- Puanları
- 2,760
Sohbet düzenini sağlamak isteyen sunucu sahipleri için mükemmel bir skript!
Kod:
command /sohbet [<text>] [<text>]:
permission: sohbet.yetkili
permission message: &cDostum Bu Komut İçin Yetkin YOK!
trigger:
if arg 1 is not set:
send "&e&lSOHBET &8&l» &aKomutlara Bakmak İçin &6/sohbet yardım &aYazabilirsin."
else if arg 1 is not "temizle" or "duyuru" or "kapat" or "aç" or "yavaş" or "normal" or "yardım":
if arg 2 is not set:
send "&e&lSOHBET &8&l» &aKomutlara Bakmak İçin &6/sohbet yardım &aYazabilirsin."
else:
send "&e&lSOHBET &8&l» &aKomutlara Bakmak İçin &6/sohbet yardım &aYazabilirsin."
else if arg 1 is "temizle":
if arg 2 is not set:
loop 100 times:
broadcast ""
broadcast "&e&lSOHBET &8&l» &aSohbet Yetkili Tarafından Temizlendi!"
else:
loop 100 times:
broadcast ""
broadcast "&e&lSOHBET &8&l» &aSohbet &6%player% &aTarafından Temizlendi!"
else if arg 1 is "yardım":
send "&8&l&m--------&r&8&l[ &6&lGelişmiş Sohbet &8&l]&8&l&m--------"
send "&8&l» &e/sohbet temizle &c> &aSohbeti Temizle."
send "&8&l» &e/sohbet duyuru <mesaj> &c> &aBütün Oyunculara Duyuru Yap."
send "&8&l» &e/sohbet kapat &c> &aOyuncular İçin Sohbeti Kapat."
send "&8&l» &e/sohbet aç &c> &aOyuncular İçin Sohbeti Aç."
send "&8&l» &e/sohbet yavaş &c> &aOyuncular İçin Sohbeti Yavaş Moda Geçir."
send "&8&l» &e/sohbet normal &c> &aOyuncular İçin Sohbeti Normal Moda Geçir."
else if arg 1 is "duyuru":
if arg 2 is not set:
send "&e&lSOHBET &8&l» &cBir Mesaj Belirtmelisin!"
else:
broadcast "&e&lDUYURU &8&l» &c%colored arg 2%"
else if arg 1 is "kapat":
if arg 2 is not set:
if {sohbetkapat} is not set:
set {sohbetkapat} to true
loop 100 times:
broadcast ""
broadcast "&e&lSOHBET &8&l» &cSohbet Yetkili Tarafından Kapatıldı!"
else:
send "&e&lSOHBET &8&l» &cSohbet Zaten Kapalı Durumda."
else:
if {sohbetkapat} is not set:
set {sohbetkapat} to true
loop 100 times:
broadcast ""
broadcast "&e&lSOHBET &8&l» &cSohbet Yetkili Tarafından &6%arg 2% &cSebebiyle Kapatıldı!"
else:
send "&e&lSOHBET &8&l» &cSohbet Zaten Kapalı Durumda."
else if arg 1 is "aç":
if arg 2 is not set:
if {sohbetkapat} is set:
delete {sohbetkapat}
loop 100 times:
broadcast ""
broadcast "&e&lSOHBET &8&l» &aSohbet Yetkili Tarafından Açıldı!"
else:
send "&e&lSOHBET &8&l» &cSohbet Zaten Açık Durumda."
else:
if {sohbetkapat} is set:
delete {sohbetkapat}
loop 100 times:
broadcast ""
broadcast "&e&lSOHBET &8&l» &aSohbet Yetkili Tarafından Açıldı!"
else:
send "&e&lSOHBET &8&l» &cSohbet Zaten Açık Durumda."
else if arg 1 is "yavaş":
if arg 2 is not set:
if {sohbetyavas} is not set:
set {sohbetyavas} to true
send "&e&lSOHBET &8&l» &aSohbet &6Yavaş &aModa Geçirildi!"
else:
send "&e&lSOHBET &8&l» &cohbet Zaten Yavaş Modunda."
else:
if {sohbetyavas} is not set:
set {sohbetyavas} to true
send "&e&lSOHBET &8&l» &aSohbet &6Yavaş &aModa Geçirildi!"
else:
send "&e&lSOHBET &8&l» &cohbet Zaten Yavaş Modunda."
else if arg 1 is "normal":
if arg 2 is not set:
if {sohbetyavas} is set:
delete {sohbetyavas}
send "&e&lSOHBET &8&l» &aSohbet &6Normal &aModa Geçirildi!"
else:
send "&e&lSOHBET &8&l» &cSohbet Zaten Normal Modunda."
else:
if {sohbetyavas} is set:
delete {sohbetyavas}
send "&e&lSOHBET &8&l» &aSohbet &6Normal &aModa Geçirildi!"
else:
send "&e&lSOHBET &8&l» &cSohbet Zaten Normal Modunda."
on chat:
if {vpc.%player%} is set:
cancel event
if player has permission "yetkili.sohbet":
loop all players:
if loop-player has permission "efekt.efekt":
send "&8&l« &6&lVip Sohbet &8&l» &c%player% &7-> &6%message%" to loop-player
else if player has permission "efekt.efekt":
loop all players:
if loop-player has permission "efekt.efekt":
send "&8&l« &6&lVip Sohbet &8&l» &b%player% &7-> &d%message%" to loop-player
else:
if {sohbetkapat} is set:
if player doesn't have permission "sohbet.konus":
cancel event
send "&e&lSOHBET &8&l» &cSohbet Kapalıyken Konuşamazsın!"
else:
if player doesn't have permission "sohbet.konus":
if {sohbetyavas} is set:
if {bekle.%player%} is not set:
set {bekle.%player%} to true
wait 3 seconds
delete {bekle.%player%}
else:
cancel event
send "&e&lSOHBET &8&l» &cSadece &a3 &cSaniyede &61 &cKere Yazabilirsin!"
else:
if {chatrengi.%player%} is set:
set message to "<%{chatrengi.%player%}%>%message%"
on load:
loop all players:
delete {bekle.%loop-player%}
on join:
delete {bekle.%player%}