Lan server
How can I get if server is lan?
I want to make my plugin work only on lan servers Sorry for bad english :) |
Re: Lan server
Quote:
|
Re: Lan server
I know whats lan :)
|
Re: Lan server
Check if cvar sv_lan is 1.
1 = Lan only 0 = Internet |
Re: Lan server
ok, thanks :)
|
Re: Lan server
Quote:
|
Re: Lan server
You can't actually detect if a server is a LAN server using a plugin, you can get the sv_lan cvar or detect if it's a listen server (server is created using Create Game from game menu) by using !is_dedicated_server()
|
Re: Lan server
Quote:
Quote:
|
Re: Lan server
I'm saying you can get the sv_lan CVar, that doesn't guarantee that the server is a LAN server, I've seen public internet servers having sv_lan 1, so no contradiction there :P
Still, @spojk, why do you need your plugins to work only on lan servers ? |
| All times are GMT -4. The time now is 23:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.