Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- :local usernya $user;
- :local resetnya "reset-counter-$usernya";
- :if ([/ip hotspot user find name=$usernya limit-bytes-total=1073741824]="") do={/ip hotspot user set [find name=$usernya] limit-bytes-total=1073741824};
- :if ([/system schedule find name=$resetnya]="") do={
- /system schedule add name=$resetnya start-time=00:00:01 interval=1d on-event="/ip hotspot user reset-counter [find name=$usernya]"
- }
- :if ([/system schedule find name=$usernya]="") do={
- /system schedule add name=$usernya interval=30d on-event="/ip hotspot user remove [find name=$usernya]\r\n/ip hotspot active remove [find user=$usernya]\r\n/system schedule remove [find name=$resetnya]\r\n/system schedule remove [find name=$usernya]"
- }
- }
Add Comment
Please, Sign In to add comment