Files
assaultcube-/config/admin.cfg
T
ac-stef 6cdb2f88e1 change scripts to use tempalias and push/pop
* no more need to delete aliases "onQuit"
* removed on_quit.cfg
* moved faq.cfg, parsestrings.cfg and survival.cfg to config/opt
* run faq.cfg and survival.cfg when needed

DOCREF addListOnQuit
2015-03-06 22:38:28 +01:00

29 lines
1.1 KiB
INI

persistidents 0
const kick [if $numargs [if (> $numargs 1) [loop i (- $numargs 2) [alias arg2 (concat $arg2 (getalias (concatword arg (+ $i 3)))) ] ] [] ; callvote 0 $arg1 $arg2 ] ]
const ban [if $numargs [if (> $numargs 1) [loop i (- $numargs 2) [alias arg2 (concat $arg2 (getalias (concatword arg (+ $i 3)))) ] ] [] ; callvote 1 $arg1 $arg2 ] ]
const removebans [ callvote 2 $arg1 ]
const mastermode [ callvote 3 $arg1 ]
const autoteam [ callvote 4 $arg1 ]
const forceteam [ callvote 5 $arg1 $arg2 ]
const forceme [ if $numargs [ forceteam (player1 cn) $arg1 ] [ if (checkrange (player1 team) 0 1) [ forceteam (player1 cn) (! (player1 team)) ] ] ]
const giveadmin [ callvote 6 $arg1 ]
const map [ callvote 7 $arg1 $arg2 ]
const recorddemo [ callvote 8 1 ]
const cleardemo [ callvote 10 $arg1 ]
const cleardemos [ callvote 10 0 ]
const serverdesc [ callvote 11 $arg1 ]
const shuffleteams [ callvote 12 ]
const demo [
tempalias _demofile $arg1
if $connected [
addOnLoadOnce [ mode -1; map $_demofile ]
disconnect
] [
mode -1; map $_demofile
]
]
persistidents 1