To supplement Bukz' "curplayers" script:
and:
and:
These will be included in the next release of tools.cfg, which I'll retain for later.
@VallDiGna:
Haha, how'd those escape my notice?!
I've updated the flag countdown script to cover the missing cases you mentioned. Thanks!
[SELECT ALL] Code:
// (validcnumlist) returns a list of valid client numbers
alias validcnumlist [
validcnums = []
if $connected [
loop n 21 [if (= (at (pstat_score $n) 4) -1) [] [add2list validcnums $n]]
result $validcnums
] [
loop n 41 [if (strcmp (findpn $n) "") [] [add2list validcnums $n]]
result $validcnums
]]
[SELECT ALL] Code:
alias teamcount [
tmp_count = 0
loop p (curplayers) [
if (= (at (pstat_score (if $connected [at (validcnumlist) $p] [$p])) 4) $arg1) [+= tmp_count 1] []
]
result $tmp_count
]
[SELECT ALL] Code:
// kickbots (cn) (cn) (cn) (cn) (cn) (cn) ... -- kick multiple bots by client number
alias kickbots [
loop o $numargs [
kickbot (findpn (getalias (concatword "arg" (+ $o 1))))
]
]
@VallDiGna:
Haha, how'd those escape my notice?!
I've updated the flag countdown script to cover the missing cases you mentioned. Thanks!