any way to set the hostname?

Please post any questions about developing your plugin here. Please use the search function before posting!
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

any way to set the hostname?

Postby 8guawong » Thu Sep 25, 2014 6:30 am

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
User avatar
satoon101
Project Leader
Posts: 2703
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Fri Sep 26, 2014 1:00 am

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')
Image
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

Postby 8guawong » Fri Sep 26, 2014 4:44 pm

good to know

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 109 guests