Debriefing > Questions, Help, & How To's
How to view the gameplay on my server?
papel:
Hello,
I would like to know which command or event shows the current game mode on my server. For example, the ge_gameplay command sets the current gameplay mode. I need to know if there is a command that displays or if any event records this information to display on the external server.
Thank you all.
soupcan:
Can you not just get the current value of ge_gameplay?
If you're trying to get this info from another server, you can get it over the Source query protocol: https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol
A quick search shows there's already PHP, Python, etc implementations of this protocol.
PapaFox:
What if I need to know the current mode of the game for a plugin, how could I do it?
To explain better:
To know the current map use only "GetCurrentMap ()". Is there any way to do this to get the "GamePlay" (LTK, Arsenal ...).
Translated by Google Translate
papel:
--- Quote from: soupcan on October 20, 2017, 06:12:06 pm ---Can you not just get the current value of ge_gameplay?
If you're trying to get this info from another server, you can get it over the Source query protocol: https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol
A quick search shows there's already PHP, Python, etc implementations of this protocol.
--- End quote ---
soupcan, thanks for the help, friend!
As papapox said, we need the name of the event that shows the current gameplay. Our idea is to export this information to a web page where other players will be aware of what is happening in the game. We could not do this using the ge_gameplay command.
soupcan:
The best way to do that is over the Source query protocol. There's multiple implementations, including in PHP, which is what I'd assume the web application would be written in.
I'll send E-S this post since he'd know if there's a way to get that info from plugins, but a plugin for this is overkill if all you really need is info on the current state of the server. Depending on your needs, you might also be interested in HLX:CE.
Navigation
[0] Message Index
[#] Next page
Go to full version