RoyAwesome

Console Commands for Server Admins

Command , Description

  • "AdminKick", "AdminKick '<NameOrId>' <KickReason> (Kicks a player from the server)"
  • "AdminBan", "AdminBan '<NameOrId>' <BanReason> (Bans a player from the server)"
  • "AdminBroadcast", "AdminBroadcast <Message> (Send system message to all players on the server)"
  • "ChatToAdmin", "ChatToAdmin <Message> (Send system message to all admins on the server)"
  • "AdminRestartMatch", "AdminRestartMatch (Tell the server to restart the match)"
  • "AdminEndMatch", "AdminEndMatch (Tell the server to immediately end the match)"
  • "AdminPauseMatch", "AdminPauseMatch (Tell the server to put the match on hold)"
  • "AdminUnpauseMatch", "AdminUnpauseMatch (Tell the server to take off the hold)"
  • "AdminChangeMap", "AdminChangeMap <MapName> (Change the map and travel to it immediately)"
  • "AdminSetNextMap", "AdminSetNextMap <MapName> (Set the next map to travel to after this match ends)"
  • "AdminSetMaxNumPlayers", "AdminSetMaxNumPlayers <NumPlayers> (Set the maximum number of players for this server)"
  • "AdminSetNumReservedSlots", "AdminSetNumReservedSlots <NumReserved> (Set the number of reserved player slots)"
  • "AdminSlomo", "AdminSlomo <TimeDilation> (Set the clock speed on the server 0.1 is 10% of normal speed 2.0 is twice the normal speed)"
  • "AdminStats", "AdminStats (Retrieve stats from the server)"
  • "AdminAlwaysValidPlacement", "AdminAlwaysValidPlacement <alwaysValid> (Sets the server to ignore placement rules for deployables)"
  • "ShowNextMap", "ShowNextMap (Ask the server what the next map is)"
  • "Suicide", "Suicide (Causes the player to commit suicide)"
  • "ChangeTeams", "ChangeTeams (Change teams to the other side)"
  • "ChangeTeamsWithId", "ChangeTeamsWithId <NewTeam> (Change teams to the specified team number, zero changes to the other side)"
  • "CreateSquad", "CreateSquad <Name> (Request the creation of a squad, specifying the name)"
  • "JoinSquadWithName", "JoinSquadWithName <Name> (Join a squad on our team with the following name)"
  • "JoinSquadWithId", "JoinSquadWithId <Id> (Join a squad on our team with the following id)"
  • "LeaveSquad", "LeaveSquad (Leave the squad we are currently in)"
  • "CreateRallyPoint", "CreateRallyPoint (Drop a rally point for squad members to spawn from)"
  • "Chat", "Chat \"<Message>\" <ChatType=All|Team|Squad> (Broadcast chat message)"
  • "ChatToAll", "ChatToAll <Msg> (Chat to everyone)"
  • "ChatToTeam", "ChatToTeam <Msg> (Chat only to same team)"
  • "ChatToSquad", "ChatToSquad <Msg> (Chat only to same squad)"
  • "DisableHudWidgets", "DisableHudWidgets (Removes all widgets on the HUD)"
  • "DisableUI", "DisableUI (Removes the UI components from the screen)"
  • "Stat FPS", "Stat FPS (Draw frame rate on screen)"
  • "Stat Unit", "Stat Unit (Draws game, draw, and gpu times on screen)"
  • "HighResShot", "HighResShot <Resolution/Multiplier> (take a screen shot, e.g., \"HighResShot 3840x2160\" or \"HighResShot 4\")"
  • "r.SetRes", "r.SetRes <Resolution> (change screen resolution, \"r.setres 1920x1080f\")"
  • "DemoPlay", "DemoPlay"
  • "DemoRec", "DemoRec"
  • "DemoStop", "DemoStop"
  • "Disconnect", "Disconnect (Disconnects from server)"
  • "Reconnect", "Reconnect (Reconnects to previous server)"

Anything prefixed by 'Admin' is Admin-only and runs on the server. 

Share this post


Link to post
Share on other sites

Note: Hopefully by week 2 of Closed Pre-Alpha there should be a notification when admins use commands and when people teamkill eachother.  I was unable to get that stuff done for this weekend.  

Share this post


Link to post
Share on other sites

  • "AdminSlomo", "AdminSlomo <TimeDilation> (Set the clock speed on the server 0.1 is 10% of normal speed 2.0 is twice the normal speed)" 

This one should NOT ever be used, since it breaks stuff.

Share this post


Link to post
Share on other sites

Please clarify the "NameOrId" when we would use the ID... How do we get the player ID?

Share this post


Link to post
Share on other sites

Please clarify the "NameOrId" when we would use the ID... How do we get the player ID?

Bump.

Had to kick, and then ban a TK/Griefer tonight.

Steam console used to have a "Status" command that would give a player ID that was easier to run a kick/ban command on (25) instead of trying to hack out an exact username (=-//FUNNYNAMEXXX//-++-0092-)

 

Any idea on how to pull the current userids in a server?

Little reading online shows that there is a command called "PlayerState" that should post the player IDs, but it doesnt seem to be enabled.

https://forums.unrealengine.com/showthread.php?59847-How-to-get-player-steam-id

Share this post


Link to post
Share on other sites

Bump.

Had to kick, and then ban a TK/Griefer tonight.

Steam console used to have a "Status" command that would give a player ID that was easier to run a kick/ban command on (25) instead of trying to hack out an exact username (=-//FUNNYNAMEXXX//-++-0092-)

 

Any idea on how to pull the current userids in a server?

Little reading online shows that there is a command called "PlayerState" that should post the player IDs, but it doesnt seem to be enabled.

https://forums.unrealengine.com/showthread.php?59847-How-to-get-player-steam-id

I had a similar issue with a name composed of symbols.

Has a solution been discovered?

Share this post


Link to post
Share on other sites

Listing players ID...

We really need this before 15th.

 

 

EDIT:

Devs answered:

 

[16:19:31] Brian Jost: also use ShowPlayerIds
[16:19:43] Brian Jost: then AdminKickPlayerId

 

 

So we use showPlayerIds

 

and for players hacking in the server we get the steamid in the server logs to be sure who exactly the player is.

Some trolls like to hack with fake names, also to frame people too.

Share this post


Link to post
Share on other sites

To be clear the ShowPlayerId's only lists the player ID ( 0-255), not their steam ID. You then use that to kick / ban players with long names or special chars. To get steam id's you need to have your server admin look in the logs.

Share this post


Link to post
Share on other sites

Is there a way to message clients individually? A way to respond to ChatAdmin messages without speaking into all or broadcast would be nice.

Share this post


Link to post
Share on other sites

is there any further commands since this thread was posted?

just start typing Admin and see the auto complete list.

Share this post


Link to post
Share on other sites

Is there a way to message clients individually? A way to respond to ChatAdmin messages without speaking into all or broadcast would be nice.

Just use ChatToAdmin to respond. Only admins with the Access Chat can use ChatToAdmin

Share this post


Link to post
Share on other sites

Just use ChatToAdmin to respond. Only admins with the Access Chat can use ChatToAdmin

anyone can use ChatToAdmin, but only admins will see the message.

 

Usually a player use it to report something to the admin.

He is asking if there is a way to respond to the  normal player exclusively.

I have the same question.

 

 

 

EDIT: This was long time ago. I don't know if in the current version it is working the same.

Edited by BinaryCrash

Share this post


Link to post
Share on other sites

Fyi, you can also do:

?

In the console, and it will show you all the console commands available on the server.

Share this post


Link to post
Share on other sites

Fyi, you can also do:

?

In the console, and it will show you all the console commands available on the server.

I've been looking for the commanddump command thanks.

Share this post


Link to post
Share on other sites

There have been quite a few changes in the commands and some new ones added. I added comments on how to use.

 

  • ShowPlayerIds Lists the player IDs (numbering starting from 0) next to player name in console. You need to have your console key working to be able to see the list. See below how to change the key.
  • AdminKick "<NameOrSteamId>" <KickReason> (Kicks a player from the server) Use " around name but not for the reason. Does not work if reason was not entered
  • AdminKickById <PlayerID> <KickReason> (Kicks player with Id from the server) Does not work if reason was not entered. Use ShowPlayerIds command to find the IDs.
  • AdminBan "<NameOrSteamId>" <BanReason> (Bans a player from the server) Use " around name but not for the reason. Does not work if reason was not entered. Use ShowPlayerIds command to find the IDs.
  • AdminBanById <PlayerID> <BanReason> (Bans player with Id from the server) Does not work if reason was not entered.
  • AdminSetMaxNumPlayers <NumPlayers> (Set the maximum number of players for this server)
  • AdminSetNumReservedSlots <NumReserved> (Set the number of reserved player slots) Currently does the same as AdminSetMaxNumPlayers (bugged).
  • AdminStats (Retrieve stats from the server) Please run this when on server and make sure your server is running with >12 FPS. Low server tickrate causes glitches. Reduce playcount if necessary.
  • AdminDemoPlay <FileName> See video below on how to use AdminDemoRec.
  • AdminDemoRec <FileName>
  • AdminDemoStop
  • AdminSetServerPassword "<password>" (Set the password for a server or use "" to remove it) Dont forget the " around the PW or it won't work.
  • AdminKillServer 1 (Tells the server to stop execution)

 

Console Key Troubleshooting

 

Currently the console key is set to "tilde". It will work on English keyboards but not most of the other keyboards. You can still open chat to enter commands, but you can't use the "ShowPlayerIds" command because you cannot the the output.

 

To change the console key open C:\Users\<username>\AppData\Local\Squad\Saved\Config\WindowsNoEditor\Input.ini

Below the ActionMappings it should say

 

ConsoleKeys=Tilde

 

You can simply add a different key binding. I added

 

ConsoleKeys=^

 

for German keyboard layout.

 

 

 

How to use DemoRec

 

Share this post


Link to post
Share on other sites

I have tried the above ,  but the console does not appear for me. And is there a new updated admin guide outthere?

Share this post


Link to post
Share on other sites

Please be more specific. "the console does not appear"

You tried rebinding the console the key like I described above, but it did not have any effect?

 

This is how it looks in my input.ini

 

aFiCq2T.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now