mIRCForumlari.Net

mIRCForumlari.Net (https://www.mircforumlari.net/)
-   mIRC Scripting Hazır Kodlar (https://www.mircforumlari.net/mirc-scripting-hazir-kodlar/)
-   -   !haberekle veya !raporekle (https://www.mircforumlari.net/mirc-scripting-hazir-kodlar/18533-haberekle-veya-raporekle.html)

RahmetLi 16 Nisan 2023 10:41

!haberekle veya !raporekle
 
PHP- Kodu:

on *:text:*:#: {
  if ($1 == !haberekle) {
if ($1 == !raporekle) {
    if (!$2) {
      .msg $chan Not olarak ekleyeceğiniz mesajı yazınız. Örnek kullanım: !Haberekle Haberiniz
Örnek kullanım: !raporekle rapor
      halt
    }
    else {
      .write Haber.txt $calc($gettok($read(haber.txt,$lines(Haber.txt)),1,45) +1) - Zaman:  $+ $date - $time $+  Kayıt:  $+ $nick $+  Not: $2-
      .msg $chan  $+ $nick $+  Haberiniz eklendi.
    }
  }
  if ($1 == !Haberler) {
    if $lines(Haber.txt) == 0 {
      .msg $chan Not bulunmamaktadır.
    }
    else {
      .play $chan Haber.txt 1500
    }
  }
}
on *:text:*:#kanal: {
  if $1 == !habersil && $isnum($2) { write $+(-dl,$2) haber.txt | .msg $chan $2 numaralı not silindi. }
}

On *:text:*:#kanal: {
  if $1 == !haberekle && $2 { write haber.txt $2- | .msg # Haber eklendi. }
  elseif $1 == !habersil && $2 isnum { if $lines(haber.txt) >= $2 { write $+(-dl,$2) haber.txt } }
  elseif $1 == !haberler { var %:haber 1 | while %:haber <= $lines(haber.txt) { .msg # %:haber - $read(haber.txt,%:haber) | inc %:haber } }

}



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 13:24.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.


Navbar with Avatar by Motorradforum