Raised This Month: $51 Target: $400
 12% 

[ANY] PlayersMap v1.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
thEsp
BANNED
Join Date: Aug 2017
Plugin ID:
7226
Plugin Version:
1.0
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A statistical map showing where the players come from.
    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
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:17.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode