To be displayed on your website/ucp - Current location of player positions
Download the latest version.
After that then:
- Put live.amx and live.pwn in your filterscript directory
- Put "live" to your filterscripts line in your server.cfg
- Edit the PAWN config shown below and, if edited, recompile. (You need the depency shown above)
- Put everything from the "web" directory on your webserver
- Get a google maps api key
- Edit the PHP config shown below
define(PATH_JSON, "/home/samp/lmdmtest/scriptfiles/positions.json"); //full path to the json file
define("API_KEY", "google-api-key-here");
#define FILE_JSON "positions.json" //the name of the file
#define UPDATE_TIME 60000 //each time it updates the json file (milliseconds)
#define MAX_PLAYERS 50 //Player slots
There's a "live" version available at michaelbelgium.me Ofcourse i'm not really online.
The json file is:
{
"0":
{
"name":"Michael@Belgium",
"online":1,
"ping":35,
"x":2040.979003,
"y":1351.497680
},
"1":
{
"name":"bot1",
"online":1,
"ping":56,
"x":0.0,
"y":0.0
},
"2":
{
"name":"I_Am_Not_Online",
"online":0,
"ping":90,
"x":2040.979003,
"y":1351.497680
}
}