Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[ANY] PlayersMap v1.0


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy

PlayersMap v1.0

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

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.

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...