Minggu, 30 April 2023

Skript Agar Waktu Vouceran Tetap Berjalan Walaupun User dan Perangkat User Sedang Tidak Aktif










Tambah Pada Sytem / Script  :


local a $user;

local b $"mac-address";

if ([len [/system scheduler find name=$a]] = 0) do={[

  if ([len [/ip hotspot user get [find name=$a] limit-uptime]] != 0) do={[

    local f [/ip hotspot user get [find name=$a] limit-uptime];

    /system scheduler add name=$a interval=$f on-event="if ([len [/ip hotspot user find name=$a]] = 1) do={[/ip hotspot user remove [find name=$a]]}; if ([len [/ip hotspot active find mac-address=$b]] = 1) do={[/ip hotspot active remove [find mac-address=$b]]}; if ([len [/ip hotspot host find mac-address=$b]] = 1) do={[/ip hotspot host remove [find mac-address=$b]]}; delay 1s; /system scheduler remove [find name=$a]"

  ]}

]};



Kemudian Tambahkan Ke Skedjul agar berjalan otomatis saat mikrotik dihidupkan :





 

Ad Placement