View Single Post
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 07-27-2020 , 17:39   [ANY] PlayersMap v1.0
Reply With Quote #1


PlayersMap v1.0

Description
PlayersMap is a simple extension for GoldSrc/Source based games that sends information to a web-page about players' country.


Installation (READ BEFORE POSTING)
  1. Clone the repository by typing git clone https://github.com/x-Eagle-x/PlayersMapSM.git in a certain terminal.
  2. Install PHP there. Additionally add it to the %path% (if on Windows).
  3. Edit line 7 through 11 in file playersmap.php.
  4. Compile the plugin and install it in your game server.
  5. Open start.sh or start.bat, obviously depending on what operating system PHP is installed.
  6. Or if you happen to have a PHP/Apache2 server running just paste the web script to its document root.


Config (databases.cfg)
Code:
"playersmap"
{
	// "driver"	       "mysql"
        "host"              "example_host"
        "database"       "example_database"
        "user"              "example_user"
        "pass"              "example_pass"
}
Notes
  • If you can't open start.sh on linux then change its permissions by typing chmod +x start.sh.
  • If you get an error indicating that function mysqli_x is undefined then create file php.ini in PHP's main folder and type this on it:
    Code:
    extension_dir = "./ext/"
    extension = mysqli
  • Make sure your GeoIP database is updated.
  • If you want to host the SQL server on your local machine then follow this tutorial: https://forums.alliedmods.net/showthread.php?t=223331. Keep in mind that this requires the PHP script to be used in the same root server as SRCDS.
  • You may (and probably should) use a hosting service to do the job (web server) for you, just make sure you also get a SQL server included.

I would be grateful if somebody could help me write a better description about the server part.

Last edited by thEsp; 07-28-2020 at 08:11.
thEsp is offline