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
  ]
]

