Author Topic: Server name and max players client-sided  (Read 1795 times)

How do I get the server name and the max players client-sided?

I know I can capture it with these 2 functions

secureClientCmd_SetServerName Display(%host, %name)
secureClientCmd_SetMaxPlayers Display(%players)

But these get first called when I spawn.
Does anyone know how to get the info before spawning, right after joining the server?
« Last Edit: June 06, 2013, 12:44:30 PM by Zeblote »

Both values are displayed in a GUI. You can easily manipulate GUI objects. Where's the problem?

Both values are displayed in a GUI. You can easily manipulate GUI objects. Where's the problem?
I am making a new player list and want to display those 2 values without depending on the old one

$ServerInfo::Name and $ServerInfo::Maxplayers?


$ServerInfo::Name and $ServerInfo::Maxplayers?
New problem:

After some time of being in the server, $ServerInfo::Name is changed to not contain the host anymore
Like when I join the server, it is set to:
Wrapperup's Cool Party

And after some time, it is set to:
Cool Party

Anyone know what causes that and how I can fix it?

New problem:

After some time of being in the server, $ServerInfo::Name is changed to not contain the host anymore
Like when I join the server, it is set to:
Wrapperup's Cool Party

And after some time, it is set to:
Cool Party

Anyone know what causes that and how I can fix it?

Just use a work around. Upon first joining a server, store varA to varB and just refer to VarB until you leave the server..Lol.

Just use a work around. Upon first joining a server, store varA to varB and just refer to VarB until you leave the server..Lol.
...
I'm stupid