PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: Northwind on 10 April, 2007, 16:05:13

Title: Max passive user amount
Post by: Northwind on 10 April, 2007, 16:05:13
Example

Ive got 650 users limit and i want that max of them is 200 passive
Ive got 500 users limit and i want that max of them is 100 passive

i dont neet % amount,  i just want to set limit for passive users in numbers.

When passive amount is full then bot says
"Sorry! We have no room for another passive user, current passive limit is xxx"

Mousecommands:
- Add passive limit
- Remove passive limit
- Show passive limit / who set it
Title: Re: Max passive user amount
Post by: Northwind on 10 April, 2007, 20:47:52
Quote from: Mutor on 10 April, 2007, 19:37:52
Just banged this out for you, but I'm at work and unable to test is properly.
As always, comments welcome.

Working fine, thanks again Mutor... you saved my hubs bw and im more than happy for it :D

(Please do not quote the entire code block!
bastya_elvtars)
Title: Re: Max passive user amount
Post by: Jusper on 19 February, 2008, 21:17:15
Hey, guru Mutor, can u convert this useful script to the new API? I've tried but it gives me an error on line 27 (nil value).