Dedicated Gaming Servers

Zomboid: A comprehensive list of admin commands and how to use them

Zomboid: A comprehensive list of admin commands and how to use them

Project Zomboid has several admin commands that can be used through the chat as a server admin on multiplayer servers. The following commands can be executed either on the server console window or in-game (preceded by a forward slash when used in-game) provided the user has admin status. Some things are case-sensitive (ex: Base.Axe works, but not base.axe). A /help command can be used to display a full list of commands, or /help *command* to display the help tooltip for this command.

Key Takeaways

  • Admin commands in Project Zomboid can be executed either on the server console or in-game chat, provided the user has admin status.
  • Commands are case-sensitive and must be preceded by a forward slash when used in-game.
  • The /help command is available to display a full list of commands or to get help on a specific command.

Commonly Used Admin Commands

Adding Items and Experience

Admin commands are commands that run on a console and allow users to perform various activities in the game, such as generating products. For instance, you can use the /additem command to give an item to a player. If no username is given, then you will receive the item yourself. The count is optional. Use: /additem "username" "module.item" count. Example: /additem "rj" Base.Axe 5. Similarly, the /addxp command allows you to give XP to a player. Use /addxp "playername" perkname=xp. Example: /addxp "rj" Woodwork=2.

Managing Players

Managing players is crucial for maintaining a balanced and enjoyable game environment. Commands like /kick and /banuser are essential tools. The /kick command removes a player from the server, and you can specify a reason for the kick. Use: /kickuser "username" -r "reason". The /banuser command bans a user, and you can also ban their IP address and specify a reason. Use: /banuser "username" -ip -r "reason". For example: /banuser "rj" -ip -r "spawn kill".

Spawning and Events

Spawning items, vehicles, and even events can make the game more dynamic. The /addvehicle command spawns a vehicle. Use: /addvehicle "script" "user or x,y,z", e.g., /addvehicle "Base.VanAmbulance" "rj". You can also create events like a helicopter flyby using the /chopper command or spawn a horde near a player with the /createhorde command. Use: /createhorde count "username". Example: /createhorde 150 "rj". The username is optional except from the server console. With no username, the horde will be created around you.

Server Management Commands

Managing your Project Zomboid server effectively is crucial for a smooth gaming experience. Here are some essential commands to help you keep everything under control.

Changing Server Options

To change server settings on the fly, use the /changeoption command. This allows you to modify various server parameters without needing a restart. For example, to change the day length, you would use:

/changeoption DayLength 2

This command is particularly useful for adjusting gameplay dynamics based on player feedback.

Logging and Monitoring

Keeping an eye on server activity is vital. Use the /log command to set the log level for different types of events. For instance:

/log "General" "Debug"

This will set the logging level for general events to debug, providing more detailed information. You can also check if mods need updating with the /checkModsNeedUpdate command, which writes the answer to the log file.

Saving and Quitting

When it’s time to shut down the server, you have a couple of options. The /save command will save the current world state:

/save

If you need to stop the server, use the /quit command to save and then quit:

/quit

For a quicker exit without saving, use /exit-nosave. This is useful in emergency situations where you need to stop the server immediately.

Proper server management ensures a stable and enjoyable experience for all players. Regularly monitor logs and adjust settings as needed to maintain optimal performance.

Player Interaction Commands

Making Players Invincible or Invisible

These commands are essential for controlling player visibility and invincibility. Use /godmode to make a player invincible. If no username is specified, you will become invincible. For example, /godmode "rj" -true makes the player "rj" invincible. Similarly, use /invisible to make a player invisible to zombies. If no username is set, you will become invisible. For instance, /invisible "rj" -true makes "rj" invisible.

Kicking and Banning Players

Managing disruptive players is crucial for maintaining a healthy game environment. Use /kick to remove a player from the server. You can add a reason with -r. For example, /kick "username" -r "spamming" kicks the player for spamming. To ban a player, use /banuser. You can also ban by SteamID with /banid. Adding -ip will ban the player’s IP address, and -r allows you to specify a reason. For example, /banuser "username" -ip -r "cheating" bans the player for cheating.

Setting Access Levels

Access levels determine what commands a player can use. Use /setaccesslevel to assign roles like Admin, Moderator, or Observer. For example, /setaccesslevel "rj" "moderator" sets the player "rj" as a moderator. This command is vital for delegating responsibilities and ensuring smooth server management.

Always use these commands responsibly to maintain a balanced and enjoyable gaming experience for all players.

Special Commands

Sound and Weather Effects

In Project Zomboid, you can manipulate the environment to create immersive experiences. Use the /gunshot command to place a gunshot sound on a random player, or the /lightning command to summon a lightning strike. These commands can be particularly useful for creating dynamic events or scaring players.

Zombie and Horde Management

Managing zombies and hordes is crucial for maintaining the game’s balance. The /createhorde command allows you to spawn a horde near a player. For example, /createhorde 150 "username" will create a horde of 150 zombies around the specified player. You can also use the /removezombies command to clear zombies from the area.

Vehicle and Object Spawning

Spawning vehicles and objects can be done easily with admin commands. Use /addvehicle to spawn a vehicle at a specific location or near a player. For instance, /addvehicle "Base.VanAmbulance" "username" will spawn an ambulance near the specified player. Similarly, the /additem command can be used to give items to players, making resource management more flexible.

Conclusion

In conclusion, mastering the admin commands in Project Zomboid is essential for effectively managing and enhancing the multiplayer experience on your server. Whether you are adding items, spawning vehicles, or managing player permissions, these commands provide a robust set of tools to maintain control and ensure smooth gameplay. By familiarizing yourself with the various commands and their proper usage, you can create a more enjoyable and controlled environment for all players. For a comprehensive list of commands and detailed instructions, refer to the official Project Zomboid documentation and community resources.

More Project Zomboid Guides

Most Read Guides