RSSy MYGO.pl Opublikowano Lipiec 27, 2020 o 21:39 RSSy Udostępnij Opublikowano Lipiec 27, 2020 o 21:39 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) Clone the repository by typing git clone https://github.com/x-Eagle-x/PlayersMapSM.git in a certain terminal. Install PHP there. Additionally add it to the %path% (if on Windows). Edit line 7 through 11 in file playersmap.php. Compile the plugin and install it in your game server. Open start.sh or start.bat, obviously depending on what operating system PHP is installed. 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. Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi