Whitelistcmd: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Console Command}}
{{this is a|console command|name=whitelistcmd|game=Counter-Strike: Global Offensive}}
{{code|whitelistcmd}} is a [[console command]] which executes the <code><command></code> only if it is '''whitelisted''', otherwise it does nothing.
{{code|whitelistcmd}} is a [[console command]] which executes the <code><command></code> only if it is '''whitelisted''', otherwise it does nothing.


== Games ==
== Games ==
=== {{csgo|4}} ===
=== {{csgo|4}} ===
{{ModernWarning|Changes to this file require a game restart to take effect.{{confirm}} }}
{{warning|Changes to this file require a game restart to take effect.{{confirm}} }}


== Usage ==
== Usage ==
Line 17: Line 17:
== See also ==
== See also ==
* The command {{ent|execwithwhitelist|<filename>}} executes every command inside the given file with {{ent|whitelistcmd}}.
* The command {{ent|execwithwhitelist|<filename>}} executes every command inside the given file with {{ent|whitelistcmd}}.
[[Category:Counter-Strike: Global Offensive console command]]

Latest revision as of 23:56, 1 June 2025

whitelistcmd is a console command available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. whitelistcmd is a console command which executes the <command> only if it is whitelisted, otherwise it does nothing.

Games

Counter-Strike: Global Offensive Counter-Strike: Global Offensive

Warning.pngWarning:Changes to this file require a game restart to take effect.[confirm]

Usage

whitelistcmd <command>

Files

<game>/bspconvar_whitelist.txt

See also