13 Dec 11, 09:19PM
[cubescript]
// forceteams -- force a variable number of client numbers to the opposite team -- by V-Man
// requires tools.cfg
alias forceteams [
forcelist = []
ft = 0; tmp1 = ft; tmp2 = $numargs; tmp3 = 100
loop sft $numargs [add2alias forcelist (getalias (concatword arg (+ $sft 1)))]
tmp4 = [forceteam (at $forcelist $ft)]
sloopme]
[/cubescript]
This works in SVN, haven't tested in 1.1.0.4.
The sleeps are certainly the key to this, but in 1.0 you couldn't even sleep repeat admin commands (or perhaps I couldn't figure out how, but I do recall trying many different methods).
// forceteams -- force a variable number of client numbers to the opposite team -- by V-Man
// requires tools.cfg
alias forceteams [
forcelist = []
ft = 0; tmp1 = ft; tmp2 = $numargs; tmp3 = 100
loop sft $numargs [add2alias forcelist (getalias (concatword arg (+ $sft 1)))]
tmp4 = [forceteam (at $forcelist $ft)]
sloopme]
[/cubescript]
This works in SVN, haven't tested in 1.1.0.4.
The sleeps are certainly the key to this, but in 1.0 you couldn't even sleep repeat admin commands (or perhaps I couldn't figure out how, but I do recall trying many different methods).