Nano_Sensei
Eğlenceliydi :)
- Katılım
- 15 Aralık 2015
- Mesajlar
- 3
- Elmaslar
- 2
- Puan
- 0
- Yaş
- 25
Merhaba arkadaşlar.
Bu Skript oyun içi chatte gereken aklıma gelen her şeye sahiptir.
Sizi çok sıkmak istemediğimden kodlara geçiyorum:
Not: İstenirse AuthMeSkAddon kullanılarak özellikler güçlendirilebilir. 1 is 1 kısımları # içine alınıp üstlerindeki satırdan # kısımları silinirse AuthMeSkAddon kullanabilirsiniz.
Bu Skript oyun içi chatte gereken aklıma gelen her şeye sahiptir.
Sizi çok sıkmak istemediğimden kodlara geçiyorum:
Kod:
#! GGCHAT v1
options:
#! Değerleri boş bırakırsanız konsol hata verir.
#! Mesaj yazmadan önce bir bekleme süresi olmasını istiyorsanız "true", istemiyorsanız "false" yapın. (Type: Boolean = true/false)
gg-chat-cd-option: true
#! Yukarıdaki değer "true" ise saniye cinsinden mesaj bekleme süresi. (Type: Number)
gg-chat-cd: 1
#! Ne yaptığınızı bilmiyorsanız bu kısma dokunmayın.
#! Burayı düzenlemeden önce dosyanın bir yedeğini almayı unutmayın!
on load:
wait 5 tick
send "&dGGCHAT &8&l=>&7 GGCHAT yuklendi!" to console
on join:
{gg-chat-name.%player%} is not set:
set {gg-chat-name.%player%} to "<white>%player%"
set player's tablist name to "%player%"
clear {gg-chat-cd.%player%}
on chat:
cancel event
#player is logged:
1 is 1:
{gg-chat-closed} is not set:
{@gg-chat-cd-option} is true:
{gg-chat-cd.%player%} is not set:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
set {gg-chat-cd.%player%} to true
wait {@gg-chat-cd} second
delete {gg-chat-cd.%player%}
else:
send "&dLütfen daha yavaş yazın!"
{@gg-chat-cd-option} is false:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
else if player has permission "ggchat.op":
{@gg-chat-cd-option} is true:
{gg-chat-cd.%player%} is not set:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
set {gg-chat-cd.%player%} to true
wait {@gg-chat-cd} second
delete {gg-chat-cd.%player%}
else:
send "&dLütfen daha yavaş yazın!"
{@gg-chat-cd-option} is false:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
else:
send "&dSohbet kapalı iken konuşamazsın."
command /ggchat [<string>] [<string>] [<player>] [<string>]:
permission: ggchat.cmd
permission message: &dggchat.cmd&4 yetkisine sahip değilsin.
usage: /ggchat help
trigger:
arg 1 is "help":
send "<yellow>/ggchat <red>set prefix <aqua>[oyuncu] [prefix] &8&l»&5 Prefix'i ayarlar."
send "<yellow>/ggchat <red>set suffix <aqua>[oyuncu] [suffix] &8&l»&5 Suffix'i ayarlar."
send "<yellow>/ggchat <red>set name <aqua>[oyuncu] [isim] &8&l»&5 İsmi ayarlar."
send "<yellow>/ggchat <red>remove prefix <aqua>[oyuncu] &8&l»&5 Prefix'i siler."
send "<yellow>/ggchat <red>remove suffix <aqua>[oyuncu] &8&l»&5 Suffix'i siler."
send "<yellow>/ggchat <red>remove name <aqua>[oyuncu] &8&l»&5 İsmi eski haline getirir."
send "<yellow>/ggchat <red>chat clear <aqua>[oyuncu] &8&l»&5 Oyuncunun sohbetini temizler."
send "<yellow>/ggchat <red>chat clear &8&l»&5 Tüm sohbeti temizler."
send "<yellow>/ggchat <red>chat close &8&l»&5 Sohbeti kapatır."
send "<yellow>/ggchat <red>chat open &8&l»&5 Sohbeti açar."
else if arg 1 is "chat":
arg 2 is "clear":
arg 3 is not set:
arg 4 is not set:
loop 100 times:
send "" to players
send "&eSohbet temizlendi." to players
else:
send "&dBu ayar geçersiz."
stop
else:
loop 100 times:
send "" to arg 3
send "&eSohbetiniz temizlendi." to arg 3
else if arg 2 is "close":
arg 3 is not set:
arg 4 is not set:
set {gg-chat-closed} to true
send "&eSohbet kapatıldı." to players
else:
send "&dBu ayar geçersiz."
stop
else:
send "&dBu ayar geçersiz."
stop
else if arg 2 is "open":
arg 3 is not set:
arg 4 is not set:
delete {gg-chat-closed}
send "&eSohbet açıldı." to players
else:
send "&dBu ayar geçersiz."
stop
else:
send "&dBu ayar geçersiz."
stop
else:
send "&dLütfen doğru bir ayar girin!"
stop
else if arg 1 is "set":
arg 2 is "prefix":
arg 3 is set:
arg 4 is set:
set {gg-chat-prefix.%arg 3%} to "%colored arg 4%"
send "&e%arg 3% oyuncusunun prefix'i ayarlandı!"
send "&ePrefix'in ayarlandı!" to arg 3
stop
else:
send "&dPrefix belirtilmedi!"
stop
else:
send "&dOyuncu belirtilmedi!"
stop
arg 2 is "suffix":
arg 3 is set:
arg 4 is set:
set {gg-chat-suffix.%arg 3%} to "%colored arg 4%"
send "&e%arg 3% oyuncusunun suffix'i ayarlandı!"
send "&eSuffix'in ayarlandı!" to arg 3
stop
else:
send "&dSuffix belirtilmedi!"
stop
else:
send "&dOyuncu belirtilmedi!"
stop
arg 2 is "name":
arg 3 is set:
arg 4 is set:
set {gg-chat-name.%arg 3%} to "%colored arg 4%"
set arg 3's tablist name to "%colored arg 4%"
send "&e%arg 3% oyuncusunun adı değiştirildi!"
send "&eAdın değiştirildi!" to arg 3
stop
else:
send "&dAd belirtilmedi!"
stop
else:
send "&dOyuncu belirtilmedi!"
stop
else:
send "&dLütfen doğru bir ayar girin!"
stop
else if arg 1 is "remove":
arg 2 is "prefix":
arg 3 is set:
delete {gg-chat-prefix.%arg 3%}
send "&e%arg 3% oyuncusunun prefix'i silindi!"
send "&ePrefix'in silindi!" to arg 3
stop
else:
send "&dOyuncu belirtilmedi!"
stop
arg 2 is "suffix":
arg 3 is set:
delete {gg-chat-suffix.%arg 3%}
send "&e%arg 3% oyuncusunun suffix'i silindi!"
send "&eSuffix'in silindi!" to arg 3
stop
else:
send "&dOyuncu belirtilmedi!"
stop
arg 2 is "name":
arg 3 is set:
set {gg-chat-name.%arg 3%} to "%arg 3%"
set arg 3's tablist name to "%arg 3%"
send "&e%arg 3% oyuncusunun adı eski haline getirildi!"
send "&eAdın eski haline getirildi!" to arg 3
stop
else:
send "&dOyuncu belirtilmedi!"
stop
else:
send "&dLütfen doğru bir ayar girin!"
stop
else:
send "&dBilgi için <yellow>/ggchat help&d."
Kod:
#! GGCHAT v1
options:
#! Set all the values or you'll get errors.
#! It adds a cooldown between 2 messages. (Type: Boolean = true/false)
gg-chat-cd-option: true
#! It's the cooldown value. Standard value is 2 seconds. (Type: Number)
gg-chat-cd: 2
#! Do not edit this if you don't know Skript.
#! Get a copy of the file before changing this part.
on load:
wait 5 tick
send "&dGGCHAT &8&l=>&7 GGCHAT finished loading." to console
on join:
{gg-chat-name.%player%} is not set:
set {gg-chat-name.%player%} to "<white>%player%"
set player's tablist name to "%player%"
clear {gg-chat-cd.%player%}
on chat:
cancel event
#player is logged:
1 is 1:
{gg-chat-closed} is not set:
{@gg-chat-cd-option} is true:
{gg-chat-cd.%player%} is not set:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
set {gg-chat-cd.%player%} to true
wait {@gg-chat-cd} second
delete {gg-chat-cd.%player%}
else:
send "&dPlease write slowly!"
{@gg-chat-cd-option} is false:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
else if player has permission "ggchat.op":
{@gg-chat-cd-option} is true:
{gg-chat-cd.%player%} is not set:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
set {gg-chat-cd.%player%} to true
wait {@gg-chat-cd} second
delete {gg-chat-cd.%player%}
else:
send "&dPlease write slowly!"
{@gg-chat-cd-option} is false:
{gg-chat-prefix.%player%} is set:
{gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-prefix.%player%}% <reset>%{gg-chat-name.%player%}%"
else if {gg-chat-suffix.%player%} is set:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}% <reset>%{gg-chat-suffix.%player%}%"
else:
set {gg-chat-all.%player%} to "%{gg-chat-name.%player%}%"
broadcast "%{gg-chat-all.%player%}% &8&l»&7 %message%"
else:
send "&dYou can't send messages while the chat is closed."
command /ggchat [<string>] [<string>] [<player>] [<string>]:
permission: ggchat.cmd
permission message: &4Permission &dggchat.cmd&4 is missing.
usage: /ggchat help
trigger:
arg 1 is "help":
send "<yellow>/ggchat <red>set prefix <aqua>[player] [prefix] &8&l»&5 Set a player's prefix."
send "<yellow>/ggchat <red>set suffix <aqua>[player] [suffix] &8&l»&5 Set a player's suffix"
send "<yellow>/ggchat <red>set name <aqua>[player] [name] &8&l»&5 Change a player's name."
send "<yellow>/ggchat <red>remove prefix <aqua>[player] &8&l»&5 Remove a player's prefix."
send "<yellow>/ggchat <red>remove suffix <aqua>[player] &8&l»&5 Remove a player's suffix."
send "<yellow>/ggchat <red>remove name <aqua>[player] &8&l»&5 Resets a player's name."
send "<yellow>/ggchat <red>chat clear <aqua>[player] &8&l»&5 Clears a player's chat."
send "<yellow>/ggchat <red>chat clear &8&l»&5 Clears everyone's chat."
send "<yellow>/ggchat <red>chat close &8&l»&5 Closes the chat."
send "<yellow>/ggchat <red>chat open &8&l»&5 Opens the chat."
else if arg 1 is "chat":
arg 2 is "clear":
arg 3 is not set:
arg 4 is not set:
loop 100 times:
send "" to players
send "&eChat cleared." to players
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else:
loop 100 times:
send "" to arg 3
send "&eYour chat is cleared." to arg 3
else if arg 2 is "close":
arg 3 is not set:
arg 4 is not set:
set {gg-chat-closed} to true
send "&eChat is closed." to players
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else if arg 2 is "open":
arg 3 is not set:
arg 4 is not set:
delete {gg-chat-closed}
send "&eChat is opened." to players
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else if arg 1 is "set":
arg 2 is "prefix":
arg 3 is set:
arg 4 is set:
set {gg-chat-prefix.%arg 3%} to "%colored arg 4%"
send "&ePrefix of %arg 3% has been changed."
send "&eYour prefix has been changed!" to arg 3
stop
else:
send "&dPrefix is missing!"
stop
else:
send "&dPlayer is missing!"
stop
arg 2 is "suffix":
arg 3 is set:
arg 4 is set:
set {gg-chat-suffix.%arg 3%} to "%colored arg 4%"
send "&eSuffix of %arg 3% has been changed."
send "&eYour suffix has been changed!" to arg 3
stop
else:
send "&dSuffix is missing!"
stop
else:
send "&dPlayer is missing!"
stop
arg 2 is "name":
arg 3 is set:
arg 4 is set:
set {gg-chat-name.%arg 3%} to "%colored arg 4%"
set arg 3's tablist name to "%colored arg 4%"
send "&eName of %arg 3% has been changed."
send "&eYour name has been changed!" to arg 3
stop
else:
send "&dName is missing!"
stop
else:
send "&dPlayer is missing!"
stop
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else if arg 1 is "remove":
arg 2 is "prefix":
arg 3 is set:
delete {gg-chat-prefix.%arg 3%}
send "&ePrefix of %arg 3% has been removed."
send "&eYour prefix has been removed!!" to arg 3
stop
else:
send "&dPlayer is missing!"
stop
arg 2 is "suffix":
arg 3 is set:
delete {gg-chat-suffix.%arg 3%}
send "&eSuffix of %arg 3% has been removed."
send "&eYour suffix has been removed!" to arg 3
stop
else:
send "&dPlayer is missing!"
stop
arg 2 is "name":
arg 3 is set:
set {gg-chat-name.%arg 3%} to "%arg 3%"
set arg 3's tablist name to "%arg 3%"
send "&eName of %arg 3% has been set to default."
send "&eYour name has been set to default!" to arg 3
stop
else:
send "&dPlayer is missing!"
stop
else:
send "&dInvalid or missing argument. Please check <yellow>/ggchat help&d."
stop
else:
send "&dType <yellow>/ggchat help&d for info."
Kod:
/ggchat set prefix (oyuncu) (prefix) = Prefix ayarlama.
/ggchat set suffix (oyuncu) (suffix) = Suffix ayarlama.
/ggchat set name (oyuncu) (ad) = Tablist ve chatte ad değiştirme.
/ggchat remove prefix (oyuncu) = Prefix silme.
/ggchat remove suffix (oyuncu) = Suffix silme.
/ggchat remove name (oyuncu) = Oyuncu adı sıfırlama.
/ggchat chat clear (oyuncu) = Oyuncunun chatini temizleme.
/ggchat chat clear = Herkesin chatini temizleme.
/ggchat chat close = Sohbeti kapatma.
/ggchat chat open = Sohbeti açma.
/ggchat help = Yardım komutu.
ggchat.op = Chat kapalıyken chati kullanma.
ggchat.cmd = /ggchat komutunu kullanma.
Not: İstenirse AuthMeSkAddon kullanılarak özellikler güçlendirilebilir. 1 is 1 kısımları # içine alınıp üstlerindeki satırdan # kısımları silinirse AuthMeSkAddon kullanabilirsiniz.
Son düzenleme: