Community discussions

MikroTik App

Search found 2 matches

by khalilme1
Sat Mar 18, 2017 10:07 am
Forum: Scripting
Topic: please fix my script to remove user from hotspot
Replies: 0
Views: 511

please fix my script to remove user from hotspot

i want the user to connect to hotspot and ppp but idont want hime to access both at the same time foreach i in=[/ip hotspot active find] do={ foreach u in=[/ppp active find] do={ :if (([:len [/ip hotspot active get /$i user]] = [:len [/ppp active get /$u name]] do={ /ip hotspot active remove find $i...
by khalilme1
Fri Mar 17, 2017 3:08 pm
Forum: Scripting
Topic: i need help with removing user from hotspot when connected to pppoe!!!!!
Replies: 1
Views: 895

i need help with removing user from hotspot when connected to pppoe!!!!!

please help me with this: i need script that remove user from hotspot when connected to pppoe :cry: i have been tryin all day with no success {:local i; :set i [ :len [/ip hotspot active find] ]; :local uname; :foreach i in=[/ip hotspot active find] do={ :set uname [/ip hotspot active get $i user]; ...