Page 1 of 1

any way to set the hostname?

Posted: Thu Sep 25, 2014 6:30 am
by 8guawong
for some reason csgo won't allow me to have unicode in the hostname
so was wondering if there is anyway we can use SP to set the hostname?

---- edit ----

nvm got it :)
use
engine_server.server_command

Posted: Fri Sep 26, 2014 1:00 am
by satoon101
While engine_server.server_command does work, you could also use:

Syntax: Select all

from cvars import ConVar

ConVar('hostname').set_string('Some name for your server')

Posted: Fri Sep 26, 2014 4:44 pm
by 8guawong
good to know