Left 4 Dead 2

Left 4 Dead 2

3,664 ratings
Admin System - Command List
By Rayman1103 and 2 collaborators
This guide details the available commands for my Admin System mod. If you have any questions or are having problems getting a command to work, please let me know and I'd be happy to assist you.

The mod can be found on both GameMaps[www.gamemaps.com] and the Steam Workshop.
3
19
3
2
   
Award
Favorite
Favorited
Unfavorite
● Introduction


[ Introduction ]
Admin System... is an add-on for Left 4 Dead 2. was developed 9 Jan, 2014, by author Rayman1103.

[ Commands ]
All commands are done server-side by chat triggers across the console, bind and menus. This guide shows all possible things you can do with it. how to use it in a vocalizer menu, cheats menu, bind keys and also of course, the manual mode.

[ Admin ]
You will automatically be added as an admin when you host a Local Server. if you have a Dedicated Server, you'll have to manually enter your Steam ID explained below. Remember if you make another player an admin he/she can add other people also.

● Survivor Admin
[ Adding an Player to Admin ]
[ Manual mode: ]
To make a player an admin you'll have to manually enter their Steam ID in the admins.txt file. The file is located in: "C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system." Finding a player's Steam ID Go to website: (SteamIDFinder.com)[steamidfinder.com] Enter a player's Steam profile information and it'll list the steamID32 number. Note: It'll display the Steam ID as "STEAM_0" Don't enter that in either file. Instead enter it as "STEAM_1" Followed by the rest of the numbers.
[ Automatic mode: ]
In chat normal:
Where use
Command
Printscreen
Chat Player
!add_admin Bill
click here[i.imgur.com]
(Player who was playing with Bill is now Admin)
In Vocalizer menu:
Where use
Command
Printscreen
Vocalizer Menu
scripted_user_func add_admin,Bill
click here[i.imgur.com]
(Player who was playing with Bill is now Admin)
In Bind Key:
Where use
Command
Printscreen
Bind Key
Bind "H" "scripted_user_func add_admin,Bill"
click here[i.imgur.com]
(PS: You can change the keyboard bind "H" and survivor name.)


[ Removing an Player from Admin ]
[ Manual mode: ]
To remove a player from admin you'll have to manually delete their Steam ID from the admins.txt file. The file is located in: "C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system." Finding a player's Steam ID Go to website: (SteamIDFinder.com)[steamidfinder.com] Enter a player's Steam profile information and it'll list the steamID32 number.
[ Automatic mode: ]
In chat normal:
Where use
Command
Printscreen
Chat Player
!remove_admin Bill
click here[i.imgur.com]
(Player who was playing with Bill is not more Admin.)
In Vocalizer menu:
Where use
Command
Printscreen
Vocalizer Menu
scripted_user_func remove_admin,Bill
click here[i.imgur.com]
(Player who was playing with Bill is not more Admin.)
In Bind Key:
Where use
Command
Printscreen
Bind Key
Bind "H" "scripted_user_func remove_admin,Bill"
click here[prntscr.com]
(PS: You can change the keyboard bind "H" and survivor name.)


[ Admin to all ]
Enabling and disabling admin commands for all players. If you enable the administrator mode, only admins can they use commands. Also if you disable then all online members may use the commands
In chat normal:
Where use
Command
Printscreen
Chat Player
!adminmode false
click here[i.imgur.com]
(All players have acess to use all commands)
Use !adminmode true (Only admins have commands acess again)
In Vocalizer menu:
Where use
Command
Printscreen
Vocalizer Menu
scripted_user_func adminmode,false
click here[i.imgur.com]
Use scripted_user_func adminmode,true(Only admins have commands acess)
In Bind Key:
Where use
Command
Printscreen
Bind Key
Bind "H" "scripted_user_func adminmode,false"
click here[i.imgur.com]
(PS: You can change the keyboard bind "H")
Use Bind "H" "scripted_user_func adminmode,true"(Only admins have commands acess)
● How ban/unban simple player
[ Ban an player ]
[ Manual mode: ]
To ban a player you'll have to manually enter their Steam ID in the banned.txt file. The file is located in: "C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system." Finding a player's Steam ID Go to website: (SteamIDFinder.com)[steamidfinder.com] Enter a player's Steam profile information and it'll list the steamID32 number. Note: It'll display the Steam ID as "STEAM_0" Don't enter that in either file. Instead enter it as "STEAM_1" Followed by the rest of the numbers.
[ Automatic mode: ]
In chat normal:
Where use
Command
Printscreen
Chat Player
!ban Bill
click here[i.imgur.com]
(Player who was playing with Bill is banned from server.)
In Vocalizer menu:
Where use
Command
Printscreen
Vocalizer Menu
scripted_user_func ban,Bill
click here[i.imgur.com]
(Player who was playing with Bill is banned from server.)
In Bind Key:
Where use
Command
Printscreen
Bind Key
Bind "H" "scripted_user_func ban,Bill"
click here[i.imgur.com]
(PS: You can change the keyboard bind "H" and survivor name.)


[ Unban simple player ]
To un-ban a player you'll have to manually delete their Steam ID from the banned.txt file. The file is located in: "C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system." Finding a player's Steam ID Go to website: (SteamIDFinder.com)[steamidfinder.com] Enter a player's Steam profile information and it'll list the steamID32 number.

● How kick a simple player

[ Kick an player ]
In chat normal:
Where use
Command
Printscreen
Chat Player
!kick Bill
click here[i.imgur.com]
(Player who was playing with Bill was kicked from server.)
In Vocalizer menu:
Where use
Command
Printscreen
Vocalizer Menu
scripted_user_func kick,Bill
click here[i.imgur.com]
(Player who was playing with Bill was kicked from server.)
In Bind Key:
Where use
Command
Printscreen
Bind Key
Bind "H" "scripted_user_func kick,Bill"
click here[i.imgur.com]
(PS: You can change the keyboard bind "H" and survivor name.)
● Extra Commands - Part 01

[ Extra Commands ]
Only commands made on the server that you can see it in the real game.
Caution:
Commands that has "Bill" can be replaced by "All" then adding the function to all survivors. You can use this example: !give Bill first_aid_kit Numerical values can also be replaced by larger and smaller values.

Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Drop weapon
Drops a weapon
!drop bill pistol
scripted_user_func drop,bill,pistol
Drop molotov fire
Drops a Molotov at your crosshair
!drop_fire
scripted_user_func drop_fire
Drop spitter goo
Drops Spitter goo at your crosshair
!drop_spit
scripted_user_func drop_spit
Set Max Health
Set Health to survivor/infected
!max_health Bill 500
scripted_user_func max_health,bill,500
Ammo to Survivor
Set ammo to survivor
!ammo Bill 50
scripted_user_func ammo,bill,50
Adrenaline to Survivor
Set duration of adrenaline effect for survivors
!adrenaline Bill 50
scripted_user_func adrenaline,bill,50
EntFire entity
Set any entity in trigger
!ent_fire !bill sethealth 50
scripted_user_func ent_fire,!bill,sethealth,50
Remove common Infected
Removes all Common Infected in the world at the time fired
!ent_fire infected kill
scripted_user_func ent_fire,infected,kill
Fly Mode
Toggles flying mode
!fly Bill
scripted_user_func fly,bill
God Mode
Toggles god mode
!god Bill
scripted_user_func god,bill
Kill Survivor/Infected
kill survivor/infected
!kill Bill
scripted_user_func kill,bill
Defib Survivor
defib survivor
!defib Bill
scripted_user_func defib,bill
Incapacitate Survivor
incapacitate a survivor
!incap Bill
scripted_user_func incap,bill
Extinguish
Extinguishes survivor/infected, if he's on fire
!extinguish bill
scripted_user_func extinguish,bill
Health - Permanent to Temporary
Converts health value from permanent to temporary
!health bill temp
scripted_user_func health,bill,temp
Health - Temporary to Permanent
Converts health value from temporary to permanent
!health bill perm
scripted_user_func health,bill,perm
Infinite Ammo (reload)
Infinite ammo but require reloading
!infinite_ammo
scripted_user_func infinite_ammo
Limit common
Sets common infected to 0
!limit common 0
scripted_user_func limit,common,0
Limit specials
Sets max specials infected to 0
!limit maxspecials 0
scripted_user_func limit,maxspecials,0
Move Bot (Only Bot)
All Survivor bots move to your crosshair's location.
!move bill
scripted_user_func move,bill
Particle inferno grow
Spawns a fire particle
!particle inferno_grow
scripted_user_func particle,inferno_grow
Remove item survivor
remove items from survivor
!remove bill shotgun_chrome
scripted_user_func remove,bill,shotgun_chrome
Respawn Survivor
revives survivor if he's dead, and teleports him back to where he initially spawned
!respawn bill
scripted_user_func respawn,bill
Revive Survivor
revives survivor if he's incapacitated
!revive bill
scripted_user_func revive,bill
Set black & white
Sets bill's revive count to 2, making him black & white
!revivecount bill 2
scripted_user_func revivecount,bill,2
Remove black & white
Sets everyone's revive count to 0, as if they were never incapped
!revivecount bill 0
scripted_user_func revivecount,bill,0
Vomit Survivor
survivor will be covered in vomit
!vomit bill
scripted_user_func vomit,bill
Friction
slow Bill's movement
!friction bill 999
scripted_user_func friction,bill,999
Velocity
launch Bill flying in the air
!velocity bill 0 0 5000
scripted_user_func velocity,bill,0,0,5000
Gravity
change Bill's gravity rate
!gravity bill 0.5
scripted_user_func gravity,bill,0.5
Ignite
body in flames
!ignite bill
scripted_user_func ignite,bill
● Extra Commands - Part 02

[ Extra Commands ]
Only commands made on the server that you can see it in the real game.
Caution:
Commands that has "Bill" can be replaced by "All" then adding the function to all survivors. You can use this example:
!give Bill first_aid_kit
Numerical values can also be replaced by larger and smaller values Common can change to other infected:
[common, smoker, boomer, boomer, hunter, spitter]
[jockey, jockey, witch, tank, mob, witch_bride]
[common_male_tshirt_cargos, common_male_jimmy]

Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Add Laser sight
gives survivor a Laser Sight
!upgrade_add bill laser_sight
scripted_user_func upgrade_add,bill,laser_sight
Infinite upgrade
infinite upgrade to ammo explosive, ammo incendiary, etc
!infinite_upgrade explosive_ammo
scripted_user_func infinite_upgrade,explosive_ammo
Remove Laser sight
Remove survivor laser sight
!upgrade_remove bill laser_sight
scripted_user_func upgrade_remove,bill,laser_sight
Add Explosive ammo
gives survivor a explosive ammo
!upgrade_add bill explosive_ammo
scripted_user_func upgrade_add,bill,explosive_ammo

Remove Explosive ammo
remove survivor explosive ammo
!upgrade_remove bill explosive_ammo
scripted_user_func upgrade_remove,bill,explosive_ammo
Add Incendiary ammo
gives survivor a incendiary ammo
!upgrade_add bill incendiary_ammo
scripted_user_func upgrade_add,bill,incendiary_ammo
Remove Incendiary ammo
Remove survivor incendiary ammo
!upgrade_remove bill incendiary_ammo
scripted_user_func upgrade_remove,bill,incendiary_ammo
Stagger survivor
stagger survivor forward
!stagger bill
scripted_user_func stagger,bill
Stagger survivor away
staggers survivor away from the player who triggered the command
!stagger bill away
scripted_user_func stagger,bill,away
Spawn survivor
spawn survivors on your team
!survivor bill
scripted_user_func survivor,bill
Spawn survivor L4D1
spawn survivors of Left 4 Dead 1 on Left 4 Dead 2
!l4d1_survivor bill
scripted_user_func l4d1_survivor,bill
Set timescale
set timescale in game to slow or fast
!timescale 2.0
scripted_user_func timescale,2.0
Play box music
start sound music of boxes in game
!sound Jukebox.re_your_brains
scripted_user_func sound,Jukebox.re_your_brains
Stop box music
stop sound music of boxes in game
!sound stop
scripted_user_func sound,stop
Warp survivor
teleport survivors to your position
!warp bill
scripted_user_func warp,bill
Warp_here survivor
teleport survivors to your crosshair
!warp_here bill
scripted_user_func warp_here,bill
Warp to saferoom
teleport survivors to the ending saferoom
!warp_saferoom bill
scripted_user_func warp_saferoom,bill
Spawn pistol
Spawns a pistol at your crosshair's location
!weapon pistol
scripted_user_func weapon,pistol
Spawn infinite item
Spawns pipe bomb at your crosshair's location
!weapon pipe_bomb 0
scripted_user_func weapon,pipe_bomb,0
Spawn item
Spawns pipe bomb at your crosshair's location, that allows only one Survivor to pick it up
!weapon pipe_bomb 1
scripted_user_func weapon,pipe_bomb,1
Spawn infected specials
Spawns the desired infected at your crosshair's location.
!z_spawn tank 1
scripted_user_func z_spawn,tank,1
Spawn Riot Zombie
Spawns the desired common infected at your crosshair's location.
!zombie riot 5
scripted_user_func zombie,riot,5
Spawn Common Infected
Spawns this infected model at your crosshair's location.
!zombie common_male_tshirt_cargos 10
scripted_user_func zombie,common_male_tshirt_cargos,10
Enable Bash
Enables the ability to melee bash
!bash enable bill
scripted_user_func bash,enable,bill
Disable Bash
Disables the ability to melee bash
!bash disable bill
scripted_user_func bash,disable,bill
Limit Bash
Limits the ability to melee bash
!bash limit bill
scripted_user_func bash,limit,bill
Chase
Infected chase and attack Bill
!chase Bill
scripted_user_func chase,bill
Use
Invokes the use key on the targeted entity
!use Bill
scripted_user_func use,bill
Say
Send a message to all players
N/A
scripted_user_func say,Hello
Cleanup
removes all spawned entities from the map
!cleanup
scripted_user_func cleanup
Finale Start
Forces the finale to start
!finale start
scripted_user_func finale,start
Finale Rescue
Forces the finale rescue to arrive
!finale rescue
scripted_user_func finale,rescue
Director Start
resumes Infected spawning
!director start
scripted_user_func director,start
Director Stop
stops Infected from spawning
!director stop
scripted_user_func director,stop
Freeze
freezes the player
!freeze bill
scripted_user_func freeze,bill
Speed
changes the player's movement speed
!speed bill 2
scripted_user_func speed,bill,2
Noclip
noclip through objects
!noclip bill
scripted_user_func noclip,bill
Netprop
change the NetProp values of entities
!netprop bill m_bIsOnThirdStrike 1
scripted_user_func netprop,bill,m_bIsOnThirdStrike,1
● Script Code

[ Script Codes ]
This allows you to directly execute VScript code from in-game.

Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Force Diesel gas
Forces diesel gas cans on the Survivors backs
!script g_ModeScript.DirectorOptions.GasCansOnBacks <- true
N/A
● Cvar commands

[ Cvar Commands ]
Cvar commands available to admin system addon.
Caution:
Numerical values can also be replaced by larger and smaller values Remember the boolean value: Value: 1 = enabled Value: 0 = disabled
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Infinite ammo
The survivors have infinite ammo
!cvar sv_infinite_ammo 1
scripted_user_func cvar,sv_infinite_ammo,1
God mode
The survivors never take damage
!cvar god 1
scripted_user_func cvar,god,1
● Console Commands - Part 01

[ Console Commands ]
Commands that are sent by simulating a console command.

Dead Center:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Hotel
switch to map Dead Center, part: Hotel
!console changelevel c1m1_hotel
scripted_user_func console,changelevel,c1m1_hotel
Streets
switch to map Dead Center, part: Streets
!console changelevel c1m2_streets
scripted_user_func console,changelevel,c1m2_streets
Mall
switch to map Dead Center, part: Mall
!console changelevel c1m3_mall
scripted_user_func console,changelevel,c1m3_mall
Atrium Finale
switch to map Dead Center, part: Atritum Finale
!console changelevel c1m4_atrium
scripted_user_func console,changelevel,c1m4_atrium

The Passing:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Riverbank
switch to map The Passing, part: Riverbank
!console changelevel c6m1_riverbank
scripted_user_func console,changelevel,c6m1_riverbank
Underground
switch to map The Passing, part: Underground
!console changelevel c6m2_bedlam
scripted_user_func console,changelevel,c6m2_bedlam
Port
switch to map The Passing, part: Port
!console changelevel c6m3_port
scripted_user_func console,changelevel,c6m3_port

Dark Carnival:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Highway
switch to map Dark Carnival, part: Highway
!console changelevel c2m1_highway
scripted_user_func console,changelevel,c2m1_highway
Fairground
switch to map Dark Carnival, part: Fairground
!console changelevel c2m2_fairgrounds
scripted_user_func console,changelevel,c2m2_fairgrounds
Coaster
switch to map Dark Carnival, part: Coaster
!console changelevel c2m3_coaster
scripted_user_func console,changelevel,c2m3_coaster
Barns
switch to map Dark Carnival, part: Barns
!console changelevel c2m4_barns
scripted_user_func console,changelevel,c2m4_barns
Concert
switch to map Dark Carnival, part: Concert
!console changelevel c2m5_concert
scripted_user_func console,changelevel,c2m5_concert

Swamp Fever:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Plank Country
switch to map Swamp Fever, part: Plank Country
!console changelevel c3m1_plankcountry
scripted_user_func console,changelevel,c3m1_plankcountry
Swamp
switch to map Swamp Fever, part: Swamp
!console changelevel c3m2_swamp
scripted_user_func console,changelevel,c3m2_swamp
Shanty Town
switch to map Swamp Fever, part: Shanty Town
!console changelevel c3m3_shantytown
scripted_user_func console,changelevel,c3m3_shantytown
Plantation
switch to map Swamp Fever, part: Plantation
!console changelevel c3m4_plantation
scripted_user_func console,changelevel,c3m4_plantation

Hard Rain:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Milltown
switch to map Hard Rain, part: Milltown
!console changelevel c4m1_milltown_a
scripted_user_func console,changelevel,c4m1_milltown_a
Sugar Mill
switch to map Hard Rain, part: Sugar Mill
!console changelevel c4m2_sugarmill_a
scripted_user_func console,changelevel,c4m2_sugarmill_a
Mill Escape
switch to map Hard Rain, part: Mill Escape
!console changelevel c4m3_sugarmill_b
scripted_user_func console,changelevel,c4m3_sugarmill_b
Return to Town
switch to map Hard Rainr, part: Return to Town
!console changelevel c4m4_milltown_b
scripted_user_func console,changelevel,c4m4_milltown_b
Town Escape
switch to map Hard Rainr, part: Town Escape
!console changelevel c4m5_milltown_escape
scripted_user_func console,changelevel,c4m5_milltown_escape

The Parish:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Waterfront
switch to map The Parish, part: Waterfront
!console changelevel c5m1_waterfront
scripted_user_func console,changelevel,c5m1_waterfront
Park
switch to map The Parish, part: Park
!console changelevel c5m2_park
scripted_user_func console,changelevel,c5m2_park
Cemetery
switch to map The Parish, part: Cemetery
!console changelevel c5m3_cemetery
scripted_user_func console,changelevel,c5m3_cemetery
Quarter
switch to map The Parish, part: Quarter
!console changelevel c5m4_quarter
scripted_user_func console,changelevel,c5m4_quarter
Bridge
switch to map The Parish, part: Bridge
!console changelevel c5m5_bridge
scripted_user_func console,changelevel,c5m5_bridge

The Sacrifice:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Docks
switch to map The Sacrifice, part: Docks
!console changelevel c7m1_docks
scripted_user_func console,changelevel,c7m1_docks
Barge
switch to map The Sacrifice, part: Barge
!console changelevel c7m2_barge
scripted_user_func console,changelevel,c7m2_barge
Port
switch to map The Sacrifice, part: Port
!console changelevel c7m3_port
scripted_user_func console,changelevel,c7m3_port
● Console Commands - Part 02

[ Console Commands ]
Commands that are sent by simulating a console command.

No Mercy:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Hotel
switch to map No Mercy, part: Apartments
!console changelevel c8m1_apartment
scripted_user_func console,changelevel,c8m1_apartment
Subway
switch to map No Mercy, part: Subway
!console changelevel c8m2_subway
scripted_user_func console,changelevel,c8m2_subway
Sewer
switch to map No Mercy, part: Sewer
!console changelevel c8m3_sewers
scripted_user_func console,changelevel,c8m3_sewers
Hospital
switch to map No Mercy, part: Hospital
!console changelevel c8m4_interior
scripted_user_func console,changelevel,c8m4_interior
Rooftop
switch to map No Mercy, part: Rooftop
!console changelevel c8m5_rooftop
scripted_user_func console,changelevel,c8m5_rooftop

Crash Course:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
The Alleys
switch to map Crash Course, part: The Alleys
!console changelevel c9m1_alleys
scripted_user_func console,changelevel,c9m1_alleys
The Truck Depot Finale
switch to map Crash Course, part: The Truck Depot Finale
!console changelevel c9m2_lots
scripted_user_func console,changelevel,c9m2_lots

Death Toll:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
The Turnpike
switch to map Death Toll, part: The Turnpike
!console changelevel c10m1_caves
scripted_user_func console,changelevel,c10m1_caves
The Drains
switch to map Death Toll, part: The Drains
!console changelevel c10m2_drainage
scripted_user_func console,changelevel,c10m2_drainage
The Church
switch to map Death Toll, part: The Church
!console changelevel c10m3_ranchhouse
scripted_user_func console,changelevel,c10m3_ranchhouse
The Town
switch to map Death Toll, part: The Town
!console changelevel c10m4_mainstreet
scripted_user_func console,changelevel,c10m4_mainstreet
Boat House Finale
switch to map Death Toll, part: Boat House Finale
!console changelevel c10m5_houseboat
scripted_user_func console,changelevel,c10m5_houseboat

Dead Air:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
The Turnpike
switch to map Dead Air, part: The Greenhouse
!console changelevel c11m1_greenhouse
scripted_user_func console,changelevel,c11m1_greenhouse
The Crane
switch to map Dead Air, part: The Crane
!console changelevel c11m2_offices
scripted_user_func console,changelevel,c11m2_offices
The Construction Site
switch to map Dead Air, part: The Construction Site
!console changelevel c11m3_garage
scripted_user_func console,changelevel,c11m3_garage
The Terminal
switch to map Dead Air, part: The Terminal
!console changelevel c11m4_terminal
scripted_user_func console,changelevel,c11m4_terminal
Runway Finale
switch to map Dead Air, part: Runway Finale
!console changelevel c11m5_runway
scripted_user_func console,changelevel,c11m5_runway

Blood Harvest:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
The Woods
switch to map Blood Harvest, part: The Woods
!console changelevel c12m1_hilltop
scripted_user_func console,changelevel,c12m1_hilltop
The Tunnel
switch to map Blood Harvest, part: The Tunnel
!console changelevel c12m2_traintunnel
scripted_user_func console,changelevel,c12m2_traintunnel
The Bridge
switch to map Blood Harvest, part: The Bridge
!console changelevel c12m3_bridge
scripted_user_func console,changelevel,c12m3_bridge
The Train Station
switch to map Blood Harvest, part: The Train Station
!console changelevel c12m4_barn
scripted_user_func console,changelevel,c12m4_barn
Farmhouse Finale
switch to map Blood Harvest, part: Runway Finale
!console changelevel c12m5_cornfield
scripted_user_func console,changelevel,c12m5_cornfield

Cold Stream:
Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Alpine Creek
switch to map Cold Stream, part: Alpine Creek
!console changelevel c13m1_alpinecreek
scripted_user_func console,changelevel,c13m1_alpinecreek
South Pine Stream
switch to map Cold Stream, part: South Pine Stream
!console changelevel c13m2_southpinestream
scripted_user_func console,changelevel,c13m2_southpinestream
Memorial Bridge
switch to map Cold Stream, part: Memorial Bridge
!console changelevel c13m3_memorialbridge
scripted_user_func console,changelevel,c13m3_memorialbridge
Cut-throat Creek
switch to map Cold Stream, part: Cut-throat Creek
!console changelevel c13m4_cutthroatcreek
scripted_user_func console,changelevel,c13m4_cutthroatcreek
● Items Commands

[ Items Commands ]
Items random, which are possible to obtain in-game
Caution:
Numerical values can also be replaced by larger and smaller values.

Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Gascan
Drops a gascan at your crosshair
!gascan 1
scripted_user_func gascan,1
Firework
Drops firework at your crosshair
!fireworkcrate 1
scripted_user_func fireworkcrate,1
Oxygentank
Drops oxygentank at your crosshair
!oxygentank 1
scripted_user_func oxygentank,1
Propanetank
Drops propanetank at your crosshair
!propanetank 1
scripted_user_func propanetank,1
Barrel
Drops barrel at your crosshair
!barrel 1
scripted_user_func barrel,1
First aid kit
give first aid kit for you
!give first_aid_kit
scripted_user_func give,first_aid_kit
Bile bomb
give bile bomb for you
!give vomitjar
scripted_user_func give,vomitjar
Molotov
give molotv for you
!give molotov
scripted_user_func give,molotov
Pipe bomb
give pipe bomb for you
!give pipe_bomb
scripted_user_func give,pipe_bomb
Defibrillator
give defibrillator for you
!give defibrillator
scripted_user_func give,defibrillator
Pain Pills
give pills for you
!give pain_pills
scripted_user_func give,pain_pills
Cola bottles
give cola bottles for you
!give cola_bottles
scripted_user_func give,cola_bottles
Gnome
give gnome for you
!give gnome
scripted_user_func give,gnome
Random melee
Spawns melee any at your crosshair's location
!melee any
scripted_user_func melee,any
Ammo pile(1)
Spawns an ammo pile where you're aiming
!entity weapon_ammo_spawn
scripted_user_func entity,weapon_ammo_spawn
Ammo pile (2)
Spawns an ammo pile at your crosshair's location
!spawn_ammo
scripted_user_func spawn_ammo
Coffee ammo (1)
Spawns coffee can ammo at your crosshair's location.
!spawn_ammo coffee
scripted_user_func spawn_ammo,coffee
Coffee ammo (2)
Spawns this model as an weapon_ammo_spawn entity
!spawn_ammo models/props/de_prodigy/ammo_can_02.mdl
scripted_user_func spawn_ammo,models/props/de_prodigy/ammo_can_02.mdl
Police barricade (1)
Spawns the set model facing away from your direction
!prop dynamic models/props_street/police_barricade.mdl
scripted_user_func prop,dynamic,models/props_street/police_barricade.mdl
Police barricade (2)
Spawns the set model facing towards your direction
!prop dynamic models/props_street/police_barricade.mdl aimed
scripted_user_func prop,dynamic,models/props_street/police_barricade.mdl,aimed
Physics models
Spawns the set model facing towards your direction
!prop physics models/...
scripted_user_func prop,physics,models/...
Ragdoll models
Spawns the set model facing towards your direction
!prop ragdoll models/...
scripted_user_func prop,ragdoll,models/...
Door
Spawns an door at your crosshair's location
!door
scripted_user_func door
Door saferoom
Spawns an door saferoom at your crosshair's location
!door saferoom
scripted_user_func door,saferoom
Door main
Spawns an door main at your crosshair's location
!door models/props_doors/doormain01_small.mdl
scripted_user_func door,models/props_doors/doormain01_small.mdl
Minigun L4D1
Spawns an minigun l4d1 at your crosshair's location
!minigun l4d1
scripted_user_func minigun,l4d1
Minigun L4D2
Spawns an minigun l4d2 at your crosshair's location
!minigun
scripted_user_func minigun
Alarm Car
Spawns an alarm car at your crosshair's location
!alarmcar
scripted_user_func alarmcar
Resource Pack
Spawns 5 resource packs in the Holdout Mutation only
!resource 5
scripted_user_func resource,5
Dummy
spawns a model of Nick, holding a pistol
!dummy models/survivors/survivor_gambler.mdl weapon_pistol Idle_Calm_Pistol
scripted_user_func dummy,models/survivors/survivor_gambler.mdl weapon_pistol Idle_Calm_Pistol
● Weapons Commands

[ Extra Commands ]
Weapons available in Left 4 Dead 2 including some extras.

Function Name
Description about function
Chat Player
Vocalizer Menu / Bind Key
Pistol
you will receive the weapon pistol
!give pistol
scripted_user_func give,pistol
Pistol Magnum
you will receive the weapon Pistol magnum
!give pistol_magnum
scripted_user_func give,pistol_magnum
Pump shotgun
you will receive the weapon Pump shotgun
!give pumpshotgun
scripted_user_func give,pumpshotgun
Chrome Shotgun
you will receive the weapon Chrome shotgun
!give shotgun_chrome
scripted_user_func give,shotgun_chrome
SMG
you will receive the weapon SMG
!give smg
scripted_user_func give,smg
smg_silenced
you will receive the weapon SMG Silenced
!give smg_silenced
scripted_user_func give,smg_silenced
Hunting Rifle
you will receive the weapon Hunting Rifle
!give hunting_rifle
scripted_user_func give,hunting_rifle
Sniper Military
you will receive the weapon Military Sniper
!give sniper_military
scripted_user_func give,sniper_military
M16 Rifle
you will receive the weapon M16 Rifle
!give rifle
scripted_user_func give,rifle
Scar Rifle
you will receive the weapon Scar Rifle
!give rifle_desert
scripted_user_func give,rifle_desert
AK47 Rifle
you will receive the weapon AK47 Rifle
!give rifle_ak47
scripted_user_func give,rifle_ak47
Auto Shotgun
you will receive the weapon Auto Shotgun
!give autoshotgun
scripted_user_func give,autoshotgun
Spas Shotgun
you will receive the weapon Spas Shotgun
!give shotgun_spas
scripted_user_func give,shotgun_spas
Grenade Launcher
you will receive the weapon Grenade Launcher
!give grenade_launcher
scripted_user_func give,grenade_launcher
M60 Rifle
you will receive the weapon M60 Rifle
!give rifle_m60
scripted_user_func give,rifle_m60
MP5 SMG
you will receive the weapon MP5 SMG
!give smg_mp5
scripted_user_func give,smg_mp5
Sniper Scout
you will receive the weapon Sniper Scout
!give sniper_scout
scripted_user_func give,sniper_scout
Sniper AWP
you will receive the weapon Sniper AWP
!give sniper_awp
scripted_user_func give,sniper_awp
SG552 Rifle
you will receive the weapon SG552 Rifle
!give rifle_sg552
scripted_user_func give,rifle_sg552
● Close Combat Weapons

Melee Weapons (PS: Remember that each campaign supports your melee) If you want drop melee to crosshair position, change *give* to *melee*
Example !give fireaxe --> !melee fireaxe

Name
Image Preview
Game Chat
Console / Bind / Vocalizer
Fireaxe
!give fireaxe
scripted_user_func give,fireaxe
Baseball Bat
!give baseball_bat
scripted_user_func give,baseball_bat
Chainsaw
!give chainsaw
scripted_user_func give,chainsaw
Cricket Bat
!give cricket_bat
scripted_user_func give,cricket_bat
Crowbar
!give crowbar
scripted_user_func give,crowbar
Frying Pan
!give frying_pan
scripted_user_func give,frying_pan
Golf Club
!give golfclub
scripted_user_func give,golfclub
Electric guitar
!give electric_guitar
scripted_user_func give,electric_guitar
Katana
!give katana
scripted_user_func give,katana
Machete
!give machete
scripted_user_func give,machete
Nightstick
!give tonfa
scripted_user_func give,tonfa
Pitchfork
!give pitchfork
scripted_user_func give,pitchfork
Shovel
!give shovel
scripted_user_func give,shovel

● Using a server.nut File
You can use a file called "server.nut" to make a few additional changes to your game.

Step 1: Download the server.nut file here[www.dropbox.com].
Step 2: Place the server.nut file in left 4 dead 2/left4dead2/scripts/vscripts.

You can open the file using a text editor, and make changes and additions to whatever you prefer. For a list of more functions you can check the L4D2 VScripts page, or EMS page.
● Using a cvars.txt File
You can create a file called "cvars.txt" and place it in the following directory:
C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2\ems\admin system

This file will automatically execute all Cvars upon loading each map. Keep in mind each Cvar will need to be on its own line within the file.

Here's an example of how you can enter the Cvars:

god "1" "sv_infinite_ammo" "1" sv_gravity 200 scripted_user_func give,all,rifle_m60 scripted_user_func max_health,all,300
● Credits

1,494 Comments
Grogg 23 Jun @ 9:00pm 
whenever I try to use !kill commands on bots, no matter which name i type, it kills me instead

watterfuc
Beexz 20 Jun @ 11:44pm 
What's the scripted_user_func for the Cvar "Matrix" off and on.
barn 4 Jun @ 8:07pm 
yes there is viske_, you simply just type your reason after there username
viske_ 28 May @ 1:37pm 
Hi, is there any way to kick players from local servers and provide reasons? Like, !kick [user] [reason]?
nommetanel 25 May @ 4:54am 
why wont i take damage? i did not use any commands
Doll Tails 23 May @ 6:05pm 
Hey question, How do i spawn other survivors into l4d2 maps?
HeavyFromPootis(soupz) 16 Apr @ 4:20pm 
why isnt there a !give knife command?
Трупэр 14 Apr @ 6:31am 
А как в чате убрать "admin system" чтобы оно не писалось каждый раз что я зашел на сервер
journiousguy 6 Apr @ 4:54pm 
why cant i spawn l4d2 survivors on l4d1 maps
xᴜɴᴛᴀ 27 Mar @ 3:07pm 
Can't I separate the CVARs by game mode in some way?