aLone | 23 Ağustos 2014 17:51 | Cevap: Agresif koruma ya muaf ip ekleme ? Bu şekilde Kod:
#agresif off
on *:snotice:*client connecting*:{
if ($level($9) == muafnlist) { halt }
var %:ip $remove($gettok($10,2,64),$chr(41))
if $read(muafips.txt,w,$+(*,%:ip,*)) { halt }
var %µ = $+(%,flood.,$left($gettok($10,2,64),-1))
inc $(%µ,1)
if (!$timer($gettok(%µ,1,37))) { $+(.timer,$gettok(%µ,1,37)) 1 3 unset $(%µ,1) }
if ($(%µ,2) >= 3) { unset $(%µ,1) | gzline $9 +18600 agresif baglanma sebebiyle sunucudan uzaklaştirildiniz $date $time $+([,%botnick,]) | unset $+(%,agr,.,$gettok($gettok($10,2,64),1,41)) | msg %operkanali 2[4BILGI2]1[ IP : $10 1][ NICK : $9 1] [ Atılma Sebebi : Agresif Baglanti ] }
}
#agresif end BunudaKullanabilirsin.. . Kod:
on *:Text:!Agresif *:#kanal: {
if $2 == Ac {
if !$read(admin.txt,w,$nick) { .msg $chan $+(",$nick,") Bu Komutu Kullanmaya Yetkili Degilsiniz. }
elseif (%Agresif == Acik) { .msg $chan Agresif Koruması Zaten Acık! }
else { .msg $chan Agresif Koruması Acılmıştır | set %Agresif Acik }
}
if $2 == Kapat {
if !$read(admin.txt,w,$nick) { .msg $chan $+(",$nick,") Bu Komutu Kullanmaya Yetkili Degilsiniz. }
elseif (%Agresif == Kapali) { .msg $chan Agresif Koruması Zaten Kapalı! }
else { .msg $chan Agresif Koruması Kapatılmıştır | set %Agresif Kapali }
}
if ($2 == Durum) {
if !$read(admin.txt,w,$nick) { .msg $chan $+(",$nick,") Bu Komutu Kullanmaya Yetkili Degilsiniz. }
else { .msg $chan Agresif Koruması Durum : %Agresif }
}
}
on *:snotice:*connecting on*:{
if (%agresif == Acik) {
if ($level($9) == muafnlist) { halt }
var %:ip $remove($gettok($10,2,64),$chr(41))
if $read(muafips.txt,w,$+(*,%:ip,*)) { halt }
inc -u10 %agresif. [ $+ [ %:ip ] ]
if ( %agresif. [ $+ [ %:ip ] ] == 3 ) {
gzline $+(*@,%:ip) +1200 agresif baglanma sebebiyle 10 dakka sunucudan uzaklastirildiniz $date $time $+([,%botnick,]) | .msg %operkanali [BILGI][ IP : %:ip ][ NICK : $9 ][Agresif Baglanma] | unset %agresif. [ $+ [ %:ip ] ] | halt }
}
}
Saniye inc - u10 Girecek IP sayısı [ %:ip ] ] == 3 )
Bununlada Agresif korumanı. !Agresif Ac - !Agresif Kapat - !Agresif Durum - yaparak açar kapatır durumunu öğrenebilirsin |