View Single Post
Plugin Info:     Modification:          Category:         
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-12-2019 , 11:45   City Temperature on join | Updated Nov 26th 2022
Reply With Quote #1


Quote:
Originally Posted by tarsisd2 View Post
your plugin could detect from what city is the player from and get the weather right for him!
Quote:
Originally Posted by tarsisd2 View Post
"Player" connected from "City", temperature right now is "temp°"
Translations.
&Checksums.
Spoiler

Requires:
  • GeoIP+ module or AMXX 1.9+.
  • GeoLite2 database.

    Debian based Linux systems symbolic link from apt install geoipupdate.

    GeoLite2-City.mmdb -> /var/lib/GeoIP/GeoLite2-City.mmdb
    GeoLite2-Country.mmdb -> /var/lib/GeoIP/GeoLite2-Country.mmdb


    Cron code for automatic update of database.
    @weekly geoipupdate
Directions:
  1. Download the 3 files and compare checksums.
  2. Compile and place SMA that is now an AMXX file in plugins directory.
  3. Place TXT in lang directory of amxmodx.
  4. Edit modules.ini and remove the semi-colon from in front of geoip2
  5. Unzip WAV file and place in sound/misc directory.
  6. As an admin the MOTD will prompt you where to go to get a key for CVAR: sv_openweather-key.

SMA URL
https://github.com/djearthquake/amxx.../clientemp.sma

Original without the temp. Geo data on connect Amxx 182++

ORIGINAL VERSION ARCHIVE
Includes windage. If shot the cross hair points to where the wind is blowing in real life. Have to duck or heal to straighten it. The humor.

The infamously named TRAFFIC(ID) reniced by iceeedr.
Spoiler
Attached Files
File Type: zip clientemp sound.zip (14.3 KB, 299 views)
File Type: txt clientemp.txt (5.6 KB, 252 views)
__________________

Last edited by DJEarthQuake; 11-26-2022 at 12:43. Reason: Remake socket locker.
DJEarthQuake is offline