![]() |
Op Limiti |
Post Reply ![]() |
Author | |
invertor ![]() Security Professional ![]() İnventor Joined: 18-01-2008 Status: Offline Points: 3365 |
![]() ![]() ![]() ![]() ![]() Posted: 26-12-2008 at 01:20 |
Amaç: Kanalda, belirlediğiniz rakamdan fazla opa çıkan olursa, otomatik olarak deop eder.
Örneğin; biz, addonu 5 opla sınırlı olarak aktif ettik (/oplimit on 5) ve Regex, DiLara'ya op verdi. Sonrasında şu durum meydana gelir: Alıntı: *** Regex mod değiştirdi:+o DiLara *** Op mod değiştirdi:-o DiLara <Op> Kanalda 4 optan fazlası bulunmamalıdır. (Op limiti aktif.) Kullanımı: /oplimit on|off limit Örnek: /oplimit on 5 İşte kod: Code: alias oplimit if $1 == on { if !$2 { echo Hata: Limit belirtmediniz. } | if $group(#oplimit) == on { echo Hata: Op limiti, zaten açık. } | set %limit $2 | .enable #oplimit | echo Op limiti açıldı: $+($2,.) } | elseif $1 == off { if $group(#oplimit) == off { echo Hata: Op limiti, zaten kapalı. } | .disable #oplimit | echo Op limiti kapatıldı. | $iif(%limit,unset %limit) } } #oplimit off on @* ![]() #oplimit end |
|
![]() |
Post Reply ![]() |
|
Tweet |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |