View Single Post
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-15-2024 , 17:13   Re: [AMXX] Server Informations
Reply With Quote #2

Reserved.

The JSON format will be saved like this:

PHP Code:
{
    
"IP:PORT": {
        
"server""Server Name",
        
"map""de_dust2",
        
"players""0",
        
"playersmax""32",
        
"ip""IP:PORT"
    
}

It can also hold more servers informations than just one. Currently using it for my pug mod to get servers informations, such as mode description (Warmup, Knife Round, Live, etc), also match scoreboard and so on.

----------------

(22.02.2024)

Updated main post with a Full-working PHP example which checks the IP passed to the Web API. Also, a simple way to display the existing informations inside the JSON file for starters.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-22-2024 at 04:12.
EFFx is offline