Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

Is it possible to pass the name parameter on the command line when launching Counter-Strike?

I have tried this and it does not work:

-nojoy -nomaster -nointro -game cstrike -appid 10 -gl -steam +nameExample
share|improve this question
add comment

2 Answers 2

The command in console is no longer name, but "setinfo name" , so what you want to add is then:

+setinfo name "Name goes here"
share|improve this answer
add comment

There's a short list of things you can pass on the command line, and not every config file option is supported. There's a full list of what command line parameters exist on this page. (Note that the original CounterStrike is a "Gold Source" game.)

You can, however, do this by having the correct command in a config file. The list of config file commands is far longer, and is on this page. I covered how to create config files in this question:

How do I use a script without having to type it in the console row by row?

You won't need to read the part about binding keys to "exec" other configs, since you're not doing that. Also, since the asker of that question was playing TF2, you'll have to adapt the "cfg" directory path to where your CounterStrike install is.

If you want to run this config every time the game starts, pass +exec whatever.cfg on the command line, which will execute a custom config file named "whatever.cfg".

Also, typically the game will automatically execute autoexec.cfg if there is one present in the cfg\ directory of your CounterStrike install, which would save you from having to specify any additional command line parameters.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.