PDA

View Full Version : SWAT 4 Console Commands



Coert
02-22-2009, 11:17 AM
Admin Command List:

This is the list of commands you can type into the console when logged in as an Admin.

kick ac getplayers

Lists the id, name, score and ip address of each player currently on the server.


kick ac balanceteams

Attempts to balance the teams.


kick ac lockteams

Locks/Unlocks the teams so that only Admins can change a player's team.


kick ac getbans

Lists the last 35 ip ban rules.


kick ac gettempbans

Lists the last 35 temporary ip ban rules.


kick ac addban ip/range [time]

Adds an ip/range to the ban list. See below for more information on the optional time parameter.


kick ac removeban ip/range

Removes an ip/range from the ban list.


kick ac help

Lists all the ac commands.


kick ac info

Lists some information about the mod.


kick ac sc servercommand

Sends a command to the dedicated server console.


kick ac motd msg

Replace msg with your message - sets the message of the day, enter no msg to remove the motd.


kick ac saveconfig

Saves the current server settings, useful after a kick ac sc set command.


kick ac restart

Restarts the server with the secondary maplist.


kick ac restoresag

Restores the saved maps to the normal maplist and runs Smash And Grab mode.


kick ac restoremaps

Restores the saved maps to the normal maplist.


kick ac savemaps

Saves the normal maplist to the secondary maplist.


kick ac getmaps

Lists all current maps in the normal maplist.


kick ac getsavedmaps

Lists all maps saved in the secondary maplist.


kick ac setmap mapindex

Sets the next map to the specified mapindex.


kick ac addmap mapname [mapindex]

Adds a map to the secondary maplist.

mapname is the filename of the map.

[mapindex] is optional and specifies the position to add the map in the list.


kick ac removemap mapindex

Removes the specified map from the normal maplist.


kick ac kickban id/name [time]

Kicks and bans a player.


kick ac kick id/name

Kicks a player.


kick ac makevip id/name

Makes the specified player the VIP.


kick ac forcename id/name newname

Forces the specified new name upon the player.


kick ac forcelesslethal id/name

Forces the specified player to use less lethal weapons for one round (or gives back their weapons if already in use).


kick ac switchteam id/name

Switches the specified player's team.


kick ac switchall

Switches everyone's team.


kick ac lockeddefaultteam None/Swat/Suspect

Sets the default team for connecting players if the teams are locked.


kick ac forceleader id/name

Forces the specified player to become the coop leader.


kick ac addreplacement oldclass newclass

Replaces oldclass with newclass. Note: Not saved unless you use kick ac saveconfig afterwards.


kick ac removereplacement id/name

Removes the specified replacement. Note: Not saved unless you use kick ac saveconfig afterwards.


kick ac getreplacements

Lists the replacements.


kick ac say msg

Replace msg with your message – prints a message to every player's chat area.


kick ac as msg

Replace msg with your message – prints a message to every Admin's chat area.


kick ac lockmaplist

Locks/Unlocks the maplist so that it cannot be changed.


kick ac forcenoweapons id/name

Forces the specified player to use no weapons for one round (or gives back their weapons if already in use).


kick ac forcespec id/name

Forces the specified player to enter free roam spectator mode.


kick ac forceview id/name

Forces the specified player to enter view team spectator mode.


kick ac forcejoin id/name

Forces the specified player to re-join the game.


kick ac forcemute id/name

Stops the specified player from chatting (or allows them to chat again if already in use).


kick ac pause

Pauses or unpauses the game for all clients.


Note:

id is an id taken from kick ac getplayers - these are not the same as the 'showids' ids

ip/range is an ip address or ip range

msg is a message of your choosing

oldclass is the classname of the equipment you want to replace

newclass is the classname of the equipment replacing the old equipment

name is a player name

newname is the new name of your choosing

servercommand is a dedicated server console command (for example set AMMod.AMGameMod AllowSpectators False)



time (when included) makes the IP ban temporary. It has the format: years:months:days:hours:minutes. Parts of this can be omitted, for example kick ac addban 1.2.3.4 3:0:17 would make the ban last for 3 days, 0 hours and 17 minutes, kick ac kickban Player 5:6:0:0:1 would make the ban last for 5 years, 6 months, 0 days, 0 hours and 1 minute.



The secondary maplist is primarily for use when running smash and grab old maps. It can also be used to save a favourite maplist in case it is changed.



Client Command List:

This is the list of commands any client can use by typing them in the console.


kick cc join

Puts you back into the game.


kick cc spec

Puts you into free spectator mode.


kick cc view

Lets you view through the eyes of players on your team.


kick cc menu

Opens the Client-Side menu (You must have the client-side mod.


kick cc help

Lists all the client commands.



Other Commands List:

This is the list of commands any client can use by typing them in the console.


sad password

Logs you in as admin.


Reconnect

Makes you rejoin the server.


quit/exit

Closes the entire game.

GreenBean-HH-
02-22-2009, 11:33 AM
Excellent post Coert, thanks for the addition.