Well for instance, this is a functionality that I've always wanted because my internet is so crappy and I can only play on servers with a certain # of players, when the server becomes too full I get too laggy, so:
Use:
...to bring up the script's menu, here you can set yourself a personal max client limit and choose whether or not to have your client automatically disconnect from the server when it's reached the limit. Keep in mind this number includes you so if you wanna be able to play with 11 other people at most (for a 6 on 6 or w/e), you'll have to set the limit to 13. By default the script does nothing, of course.
Useful for when some of the only good servers around ATM are ones with high maxclients that your internet can't handle, and you're lazy like me ofc. :P
Not really something that glancing at the scoreboard can pull off. This of course, is one of many examples I could of used - first one that came to mind since I've been craving it. :D
[SELECT ALL] Code:
// Personal max client threshold script by DES|Bukz
// Requires the "curplayers" script, get it from this link:
// http://forum.cubers.net/thread-38-post-32722.html#pid32722
if (checkalias climit) [] [
climit = 21
autodc = 0
autocl = 0
]
alias checkclimit [
if (< (curplayers) $climit) [] [
add2alias mapstartonce [
echo (c 3)The server has reached your predefined max client limit.
]
if (= $autodc 1) [ disconnect ] []
]
sleep 0 [ checkclimit ]
]
if (strstr $mapstartalways checkclimit) [] [
add2alias mapstartalways [
if (= $autocl 1) [ checkclimit ] []
]
]
newmenu "climit"
menuitemtextinput [ Max client limit: ] [ result $climit ] [ climit = $arg1 ]
menuitemcheckbox [ Auto-disconnect upon reaching threshold? ] [ $autodc ] [ autodc = $arg1 ]
menuitemcheckbox [ Enable the script? *Must be checked to function ] [ $autocl ] [ autocl = $arg1 ]
menuitem " OK" [ closemenu "climit" ]
Use:
[SELECT ALL] Code:
/showmenu climit
Useful for when some of the only good servers around ATM are ones with high maxclients that your internet can't handle, and you're lazy like me ofc. :P
Not really something that glancing at the scoreboard can pull off. This of course, is one of many examples I could of used - first one that came to mind since I've been craving it. :D