Skip to content

To be displayed on your website/ucp - Current location of player positions

License

Notifications You must be signed in to change notification settings

MichaelBelgium/SAMP-Live-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SAMP-Live-map

To be displayed on your website/ucp - Current location of player positions

Dependencies

Installation

Download the latest version.

After that then:

SA:MP Server

  • 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)

Website

  • Put everything from the "web" directory on your webserver
  • Get a google maps api key
  • Edit the PHP config shown below

Config

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

Preview

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
  }
}

About

To be displayed on your website/ucp - Current location of player positions

Resources

License

Stars

Watchers

Forks

Packages

No packages published