-
Notifications
You must be signed in to change notification settings - Fork 49
Code
Neon edited this page Feb 25, 2022
·
1 revision
That function querying a server data
lgsl_query_live(query_protocol (String), ip (String), connection_port (Integer), query_port (Integer), software_port (Integer), request (Integer));
query_protocol
- one of protocol which can be picked from variable $lgsl_type_list (to be sure what protocol are you needed - visit Supported games page)
ip
- ip or domain name of game server
connection_port
- server's connection port
query_port
- server query port
software_port
- server query port for softwares (for some old games, otherwise sets to 0)
request
- string which can contains: s
- server data, e
- extra data (settings, etc.), p
- players data
Example:
lgsl_query_live('urbanterror', '176.9.28.206', 27971, 27971, 0, "sep");