AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is server steam? (https://forums.alliedmods.net/showthread.php?t=86186)

xPaw 02-22-2009 05:03

Is server steam?
 
I know sounds weird, but maybe its possible to get?

hleV 02-22-2009 05:43

Re: Is server steam?
 
Code:
status
Just check what protocol server has.

xPaw 02-22-2009 05:47

Re: Is server steam?
 
and wich has nonsteam if not secret? i dont have it to check

mazmaajinsh 02-22-2009 05:48

Re: Is server steam?
 
I checked it. This wont work, because the updated non-steam servers now also show protocol as "48" . If the server is not updated it will show it as 47

Owyn 02-22-2009 06:04

Re: Is server steam?
 
you can check functions functionality which does not work on non-steam, but as problems on non-steam, not all version has same results

Dr.G 02-22-2009 06:12

Re: Is server steam?
 
cant we check a file in the mod dir or something..

YamiKaitou 02-22-2009 11:14

Re: Is server steam?
 
Just check to see if the SteamIDs that are connected are valid SteamIDs. If they aren't, it is a good chance that they are non-steam servers/clients.

fysiks 02-22-2009 17:33

Re: Is server steam?
 
Quote:

Originally Posted by YamiKaitou (Post 766689)
Just check to see if the SteamIDs that are connected are valid SteamIDs. If they aren't, it is a good chance that they are non-steam servers/clients.

When using LAN there are no STEAM IDs but maybe you could check for the LAN version also.

That would be cool to add this type of check so amx can't run on non-steam :).

danielkza 02-22-2009 18:09

Re: Is server steam?
 
Quote:

Originally Posted by fysiks (Post 766909)
When using LAN there are no STEAM IDs but maybe you could check for the LAN version also.

That would be cool to add this type of check so amx can't run on non-steam :).

The whole point of not support no-steam is doing less work, not more, find ways of blocking no-steam would just take more of the already scarce dev time.

YamiKaitou 02-22-2009 19:19

Re: Is server steam?
 
Quote:

Originally Posted by fysiks (Post 766909)
When using LAN there are no STEAM IDs but maybe you could check for the LAN version also.

PHP Code:

if (get_cvar_num("sv_lan"))
//server is lan, don't check for valid steamids
else
// server is not lan, check for valid steamids 



All times are GMT -4. The time now is 17:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.