Raised This Month: $32 Target: $400
 8% 

[ANY] PlayersMap v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
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
    Trum
    AlliedModders Donor
    Join Date: Jan 2017
    Old 07-28-2020 , 02:05   Re: [ANY] PlayersMap v1.0
    Reply With Quote #2

    Very cool!
    Trum is offline
    OXYD
    AlliedModders Donor
    Join Date: Aug 2019
    Location: pluto
    Old 07-28-2020 , 07:47   Re: [ANY] PlayersMap v1.0
    Reply With Quote #3

    What are the start.bat and start.sh used for? I can't open them either way )) I use shared hosting for the web host. Same for the csgo host
    __________________
    ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
    89.40.104.210:27015 // COMPETITIVE SERVER
    DISCORD: KENOXYD#9098

    Last edited by OXYD; 07-28-2020 at 07:47.
    OXYD is offline
    thEsp
    BANNED
    Join Date: Aug 2017
    Old 07-28-2020 , 07:56   Re: [ANY] PlayersMap v1.0
    Reply With Quote #4

    Quote:
    Originally Posted by OXYD View Post
    What are the start.bat and start.sh used for? I can't open them either way )) I use shared hosting for the web host. Same for the csgo host
    They're just small snippets that start a PHP server at port 80. Either way, if you have Apache2 already running, just copy the needed file(s) into its root directory. If you can't open start.sh on linux then change its permissions by typing chmod +x start.sh.

    Last edited by thEsp; 07-28-2020 at 08:10.
    thEsp is offline
    OXYD
    AlliedModders Donor
    Join Date: Aug 2019
    Location: pluto
    Old 08-15-2020 , 19:53   Re: [ANY] PlayersMap v1.0
    Reply With Quote #5

    Quote:
    Originally Posted by thEsp View Post
    They're just small snippets that start a PHP server at port 80. Either way, if you have Apache2 already running, just copy the needed file(s) into its root directory. If you can't open start.sh on linux then change its permissions by typing chmod +x start.sh.
    i dont have a putty console or something so i cant send commands
    __________________
    ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
    89.40.104.210:27015 // COMPETITIVE SERVER
    DISCORD: KENOXYD#9098
    OXYD is offline
    thEsp
    BANNED
    Join Date: Aug 2017
    Old 08-17-2020 , 16:40   Re: [ANY] PlayersMap v1.0
    Reply With Quote #6

    Quote:
    Originally Posted by OXYD View Post
    i dont have a putty console or something so i cant send commands
    I'm sorry, there's nothing I can really do to make it work for your case. Though you can use a free website and SQL server in order to get it working just fine, although as far as I've been told and tried myself, the loading time (both for SRCDS and Apache2/PHP) will be slightly slower depending on how "warmed" the SQL server is.

    Last edited by thEsp; 08-17-2020 at 16:43.
    thEsp is offline
    Reply


    Thread Tools
    Display Modes

    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 01:13.


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