[YARDIM] Anti kick sorunu

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
: 23 Temmuz 2020, 14:11:08
Aşağıda bulunan anti kick kodlarını script haline getirdim ancak çalışmadı chat kısmında yasaklı kelime kullandığı için kick yedi uyarısı verdi fakat kick atmadı. Yardım edebilir misiniz ?

Kod
reklamkufur = {
"yasaklı kelimeyi kullandığınız için ban yediniz",
"yasaklı kelimeyi kullandığınız için ban yediniz",
"yasaklı kelimeyi kullandığınız için ban yediniz",
"yasaklı kelimeyi kullandığınız için ban yediniz",       
}

reklam = {
"gaming",
"freeroam"                                         
}

function reklamCheck(msg)
local durum = false
for i=1,#reklam do
if tonumber(string.find(msg:lower(),reklam[i])) then
durum = true
end
end
return durum
end

addEventHandler("onPlayerChat",getRootElement(),function(msg)
if reklamCheck(msg) then
    cancelEvent()
kickPlayer ( "REKLAM KİCK", source, reklamkufur[math.random(1,#reklamkufur)])
outputChatBox(getPlayerName(source).." yasaklı kelimeyi kullandığı için kick yedi.",getRootElement(),255,0,0,false)
end
end)
« Son Düzenleme: 23 Temmuz 2020, 15:47:17 Gönderen: #Raquel »
 


MTASATURK

[YARDIM] Anti kick sorunu
« : 23 Temmuz 2020, 14:11:08 »

Çevrimdışı Leaver

  • laravel <3
  • Uzman Üye
  • *
    • İleti: 511
    • Esppa Software
Yanıtla #1 : 23 Temmuz 2020, 14:13:02
scripte admin yetkisi ver
 


Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
Yanıtla #2 : 23 Temmuz 2020, 14:15:10
Linki görebilmek için Kayıt olun yada Giriş yapın.
scripte admin yetkisi ver
resource.scriptadı olduğunu biliyorum ancak scriptadı kısmına ne yazacağım ?
 


Çevrimdışı TahaGG

  • Bilgin Üye
  • *
    • İleti: 228
Yanıtla #3 : 23 Temmuz 2020, 14:16:38
Script ne diye kayıtlıysa. Klasörün adı mesela ReklamKick ise resource.ReklamKick yazman gerekiyor.
"Türk olmak zordur, çünkü dünya ile savaşırsın. Türk olmamak daha zordur çünkü, Türk ile savaşırsın."
 


Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
Yanıtla #4 : 23 Temmuz 2020, 14:23:17
Linki görebilmek için Kayıt olun yada Giriş yapın.
Script ne diye kayıtlıysa. Klasörün adı mesela ReklamKick ise resource.ReklamKick yazman gerekiyor.
Maalesef çalışmadı :(
 


Çevrimdışı TahaGG

  • Bilgin Üye
  • *
    • İleti: 228
Yanıtla #5 : 23 Temmuz 2020, 14:25:39
Şey yaptın değil mi ?

Admin Panel -> Resources -> Manage ACL -> En üstteki admine iki kez tık ve Add object -> resource.ScriptAdi
"Türk olmak zordur, çünkü dünya ile savaşırsın. Türk olmamak daha zordur çünkü, Türk ile savaşırsın."
 


MTASATURK

Ynt: [YARDIM) Anti kick sorunu
« Yanıtla #5 : 23 Temmuz 2020, 14:25:39 »

Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
Yanıtla #6 : 23 Temmuz 2020, 14:26:51
Evet

Mesaj Birleştirildi: [time]23 Temmuz 2020, 14:27:44[/time]
yasaklı kelime kullanıldığı için kick yedi chatbox ı verdi ama yine atmadı
 


Çevrimdışı Leaver

  • laravel <3
  • Uzman Üye
  • *
    • İleti: 511
    • Esppa Software
Yanıtla #7 : 23 Temmuz 2020, 14:30:35
Console yetkisi ver aynı şekilde
 


Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
Yanıtla #8 : 23 Temmuz 2020, 14:30:55
Linki görebilmek için Kayıt olun yada Giriş yapın.
Console yetkisi ver aynı şekilde
hemen deniyorum

Mesaj Birleştirildi: [time]23 Temmuz 2020, 14:34:34[/time]
Maalesef yine  yasaklı kelimeyi kullandığı için kick yedi chatbox verdi ve kick atmadı
« Son Düzenleme: 23 Temmuz 2020, 14:34:59 Gönderen: #Raquel »
 


Çevrimdışı Leaver

  • laravel <3
  • Uzman Üye
  • *
    • İleti: 511
    • Esppa Software
Yanıtla #9 : 23 Temmuz 2020, 15:08:57
zannedersem sunucun roleplay, console yetkisinin kick yetkisi varmı kontrol edermisin?
 


Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
Yanıtla #10 : 23 Temmuz 2020, 15:16:53
kodlarda değişikliğe gittim ancak mute attığını farkettim bunu kick nasıl yapabilirm ?
Kod
reklamkufur = {
"REKLAM YAPMA IZDIRABINI SİKTİĞİM",
"BURAYI TERKET",
"SİKTİR GİT AMIN OĞLU",
"DE SİKTİR LO"
}

reklam = {
"gaming",
"MTA",
"MTA:SA",
"IP",
"İP",
"ip",
"ıp",
"sunucusuna gidelim",
"Freeroam",
"FREEROAM",
}

function reklamCheck(msg)
local durum = false
for i=1,#reklam do
if tonumber(string.find(msg:lower(),reklam[i])) then
durum = true
end
end
return durum
end

addEventHandler("onPlayerChat",getRootElement(),function(msg)
if reklamCheck(msg) then
    cancelEvent()
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
setTimer(outputChatBox, 900, 1,""..getPlayerName(source).."#ff0000 Adlı Oyuncu Küfür Ettiği İçin (2 Dakika) Susturuldu.", getRootElement(), 255, 0, 0,true)
setTimer(outputChatBox, 900, 1,"#FF9900Console #ff0000|#00ff00 Sohbeti Temizledi", getRootElement(), 255, 255, 0,true)
setPlayerMuted ( source, true )
setTimer(setPlayerMuted, 120000, 1, source, false)
end
end)



function autoUnmute ( player )
if ( isElement ( player ) and isPlayerMuted ( player ) ) then
setPlayerMuted ( player, false )
outputChatBox (""..getPlayerName ( player ).." Susturulması Açıldı.",getRootElement(), 0, 116, 197,true )
end
end
« Son Düzenleme: 23 Temmuz 2020, 15:37:51 Gönderen: #Raquel »
 


Çevrimdışı Leaver

  • laravel <3
  • Uzman Üye
  • *
    • İleti: 511
    • Esppa Software
Yanıtla #11 : 23 Temmuz 2020, 16:38:02
Kod
reklamkufur = {
"REKLAM YAPMA ",
}

reklam = {
"gaming",
"MTA",
"MTA:SA",
"IP",
"İP",
"ip",
"ıp",
"sunucusuna gidelim",
"Freeroam",
"FREEROAM",
}

function reklamCheck(msg)
local durum = false
for i=1,#reklam do
if tonumber(string.find(msg:lower(),reklam[i])) then
durum = true
end
end
return durum
end

addEventHandler("onPlayerChat",getRootElement(),function(msg)
if reklamCheck(msg) then
    cancelEvent()
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
setTimer(outputChatBox, 900, 1,""..getPlayerName(source).."#ff0000 Adlı Oyuncu Küfür Ettiği İçin (2 Dakika) Susturuldu.", getRootElement(), 255, 0, 0,true)
setTimer(outputChatBox, 900, 1,"#FF9900Console #ff0000|#00ff00 Sohbeti Temizledi", getRootElement(), 255, 255, 0,true)
kickPlayer ( source )
end
end)



function autoUnmute ( player )
if ( isElement ( player ) and isPlayerMuted ( player ) ) then
setPlayerMuted ( player, false )
outputChatBox (""..getPlayerName ( player ).." Susturulması Açıldı.",getRootElement(), 0, 116, 197,true )
end
end
 
Mesajı Beğenenler: #Raquel


Çevrimdışı #Raquel

  • Yeni Üye
  • *
    • İleti: 32
  • kendimce takılıyorum
Yanıtla #12 : 23 Temmuz 2020, 18:10:57
Linki görebilmek için Kayıt olun yada Giriş yapın.
Kod
reklamkufur = {
"REKLAM YAPMA ",
}

reklam = {
"gaming",
"MTA",
"MTA:SA",
"IP",
"İP",
"ip",
"ıp",
"sunucusuna gidelim",
"Freeroam",
"FREEROAM",
}

function reklamCheck(msg)
local durum = false
for i=1,#reklam do
if tonumber(string.find(msg:lower(),reklam[i])) then
durum = true
end
end
return durum
end

addEventHandler("onPlayerChat",getRootElement(),function(msg)
if reklamCheck(msg) then
    cancelEvent()
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
outputChatBox(" ")
setTimer(outputChatBox, 900, 1,""..getPlayerName(source).."#ff0000 Adlı Oyuncu Küfür Ettiği İçin (2 Dakika) Susturuldu.", getRootElement(), 255, 0, 0,true)
setTimer(outputChatBox, 900, 1,"#FF9900Console #ff0000|#00ff00 Sohbeti Temizledi", getRootElement(), 255, 255, 0,true)
kickPlayer ( source )
end
end)



function autoUnmute ( player )
if ( isElement ( player ) and isPlayerMuted ( player ) ) then
setPlayerMuted ( player, false )
outputChatBox (""..getPlayerName ( player ).." Susturulması Açıldı.",getRootElement(), 0, 116, 197,true )
end
end
Teşekkürler

Mesaj Birleştirildi: [time]23 Temmuz 2020, 18:11:33[/time]
Konu kilit.
« Son Düzenleme: 23 Temmuz 2020, 19:36:04 Gönderen: #Raquel »