admin.cfg 1.1 KB

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