Buzz_Litebeer
02-03-2003, 09:05 PM
MAM's command processing module includes a handful of built-in commands. These are:
Note: <statnum> represents the admins client id, and verification of a sent command will return to the admin id provided.
______________________ default_test:
command "<statnum> default_test"
The default_test command is used verify that the file has compiled, it will do a yellow iprintln command inside the game. Example:
command "default_test"
will print out "Default_cmds.scr has compiled successfully"
______________________ swap_teams:
command "<statnum> swap_teams"
Makes Axis players go allies, and allied players go Axis.
Example:
command "swap_teams"
will make the teams swap.
______________________ switch_axis:
command "<statnum> switch_axis [<clientid>|all|axis|allies|spectator]"
Makes a player or group of players switch to the axis team.
Examples:
command "switch_axis 1 2 3 4"
will switch players 1, 2, 3, 4 to the axis team.
command "switch_axis all"
will switch all palyers to axis.
command "switch_axis allies"
will switch all allies to axis.
______________________ switch_allies:
command "<statnum> switch_allies [<clientid>|all|axis|allies|spectator]"
Makes a player or group of players switch to the allies team.
Examples:
command "switch_allies 1 2 3 4"
will switch players 1, 2, 3, 4 to the allies team.
command "switch_allies all"
will switch all palyers to allies.
command "switch_allies axis"
will switch all axis to allies.
______________________ switch_spectator:
command "<statnum> switch_spectator [<clientid>|all|axis|allies]"
Makes a player or group of players go to spectator mode.
Examples:
command "switch_spectator 1 2 3 4"
will switch players 1, 2, 3, 4 to spectator.
command "switch_spectator all"
will switch all palyers to spectator.
command "switch_spectator axis"
will switch all axis to spectator.
______________________ client_quit:
command "<statnum> client_quit [<clientid>|all|axis|allies]"
Makes a player quit to desktop.
Examples:
command "client_quit 1 2 3 4"
Will make players 1 2 3 4 quit to desktop.
command "client_quit all"
Would make all players quit.
command "client_quit axis"
Would make all players on axis team quit.
______________________ client_disconnect:
command "<statnum> client_disconnect [<clientid>|all|axis|allies]"
Makes a player disconnect.
Examples:
command "client_disconnect 1 2 3 4"
Will make players 1 2 3 4 disconnect.
command "client_disconnect all"
Would make all players disconnect.
command "client_disconnect axis"
Would make all axis players disconnect.
______________________ client_vidrestart:
command "<statnum> client_vidrestart[<clientid>|all|axis|allies]"
Makes a player do a video restart.
Examples:
command "client_vidrestart 1 2 3 4"
Will make players 1 2 3 4 do a vid restart.
command "client_vidrestart all"
Makes all players do a vid restart.
command "client_vidrestart axis"
Would make all axis do a video restart.
______________________ client_suicide:
command "<statnum> client_suicide [<clientid>|all|axis|allies]"
Makes a player suicide
Examples:
command "client_suicide 1 2 3 4"
Will make players 1 2 3 4 commit suicide.
command "client_suicide all"
Makes all players commit suicide.
command "client_suicide axis"
Would make all axis commit suicide.
______________________ exec:
command "<statnum> exec filename threadname "
Executes the script with the filename and thread in the script when provided.
A thread must be provided, this is for one time execution of a file.
for exmaple
command "exec global/dmzdogtagz.scr dmzbalanceteams" would run a thread in the dmzdogtagz file called dmzbalanceteams.
Note: <statnum> represents the admins client id, and verification of a sent command will return to the admin id provided.
______________________ default_test:
command "<statnum> default_test"
The default_test command is used verify that the file has compiled, it will do a yellow iprintln command inside the game. Example:
command "default_test"
will print out "Default_cmds.scr has compiled successfully"
______________________ swap_teams:
command "<statnum> swap_teams"
Makes Axis players go allies, and allied players go Axis.
Example:
command "swap_teams"
will make the teams swap.
______________________ switch_axis:
command "<statnum> switch_axis [<clientid>|all|axis|allies|spectator]"
Makes a player or group of players switch to the axis team.
Examples:
command "switch_axis 1 2 3 4"
will switch players 1, 2, 3, 4 to the axis team.
command "switch_axis all"
will switch all palyers to axis.
command "switch_axis allies"
will switch all allies to axis.
______________________ switch_allies:
command "<statnum> switch_allies [<clientid>|all|axis|allies|spectator]"
Makes a player or group of players switch to the allies team.
Examples:
command "switch_allies 1 2 3 4"
will switch players 1, 2, 3, 4 to the allies team.
command "switch_allies all"
will switch all palyers to allies.
command "switch_allies axis"
will switch all axis to allies.
______________________ switch_spectator:
command "<statnum> switch_spectator [<clientid>|all|axis|allies]"
Makes a player or group of players go to spectator mode.
Examples:
command "switch_spectator 1 2 3 4"
will switch players 1, 2, 3, 4 to spectator.
command "switch_spectator all"
will switch all palyers to spectator.
command "switch_spectator axis"
will switch all axis to spectator.
______________________ client_quit:
command "<statnum> client_quit [<clientid>|all|axis|allies]"
Makes a player quit to desktop.
Examples:
command "client_quit 1 2 3 4"
Will make players 1 2 3 4 quit to desktop.
command "client_quit all"
Would make all players quit.
command "client_quit axis"
Would make all players on axis team quit.
______________________ client_disconnect:
command "<statnum> client_disconnect [<clientid>|all|axis|allies]"
Makes a player disconnect.
Examples:
command "client_disconnect 1 2 3 4"
Will make players 1 2 3 4 disconnect.
command "client_disconnect all"
Would make all players disconnect.
command "client_disconnect axis"
Would make all axis players disconnect.
______________________ client_vidrestart:
command "<statnum> client_vidrestart[<clientid>|all|axis|allies]"
Makes a player do a video restart.
Examples:
command "client_vidrestart 1 2 3 4"
Will make players 1 2 3 4 do a vid restart.
command "client_vidrestart all"
Makes all players do a vid restart.
command "client_vidrestart axis"
Would make all axis do a video restart.
______________________ client_suicide:
command "<statnum> client_suicide [<clientid>|all|axis|allies]"
Makes a player suicide
Examples:
command "client_suicide 1 2 3 4"
Will make players 1 2 3 4 commit suicide.
command "client_suicide all"
Makes all players commit suicide.
command "client_suicide axis"
Would make all axis commit suicide.
______________________ exec:
command "<statnum> exec filename threadname "
Executes the script with the filename and thread in the script when provided.
A thread must be provided, this is for one time execution of a file.
for exmaple
command "exec global/dmzdogtagz.scr dmzbalanceteams" would run a thread in the dmzdogtagz file called dmzbalanceteams.