AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to fetch server data to webmod? (https://forums.alliedmods.net/showthread.php?t=341654)

thesense1 02-05-2023 04:42

How to fetch server data to webmod?
 
Hi. I was inspecting some old webmods and wan't to make a new one. I couldn't find the how to get fetch data. Old ones use "{c.hostname}, {c_ip}, {c_rcon} etc. But how to find whole list and where it gets that data?

bigdaddy424 02-05-2023 17:48

Re: How to fetch server data to webmod?
 
SourceQuery?

fysiks 02-05-2023 18:10

Re: How to fetch server data to webmod?
 
If you're referring to querying data from a game server, you do that using Valve's Server Query protocol. There are some existing libraries out there for different languages that implement this procotol in a convenient package. For example, SourceQuery is one that I use for PHP.


All times are GMT -4. The time now is 21:30.

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