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

City Temperature on join | Updated Nov 26th 2022


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
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, 303 views)
File Type: txt clientemp.txt (5.6 KB, 261 views)
__________________

Last edited by DJEarthQuake; 11-26-2022 at 12:43. Reason: Remake socket locker.
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-12-2019 , 22:17   Re: TrafficID
Reply With Quote #2

So, why is the title of your thread "TrafficID"? Makes no sense. Also, are you saying that none of the other plugins that do this exact same thing no longer work?
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-14-2019 , 14:00   Re: TrafficID
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
So, why is the title of your thread "TrafficID"? Makes no sense. Also, are you saying that none of the other plugins that do this exact same thing no longer work?
What other plugins?

This works?

Traffic 6:*a concentration of participants or players and especially defensive players

ID 1a:*an act of*identifying*:*the state of being*identified
__________________
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-12-2019 , 23:53   Re: TrafficID
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
So, why is the title of your thread "TrafficID"? Makes no sense. Also, are you saying that none of the other plugins that do this exact same thing no longer work?

Thanks for your feedback. This is reposted and answered later.
__________________

Last edited by DJEarthQuake; 02-05-2020 at 14:58. Reason: brevity
DJEarthQuake is offline
smurfavr
Member
Join Date: Jan 2011
Location: Bulgaria
Old 03-13-2019 , 08:03   Re: TrafficID
Reply With Quote #5

AMX Mod X v1.8.2-d server Hl1 eror
Code:
//// named.sma
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(21) : error 017: undefin
ed symbol "geoip_city"
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(23) : error 017: undefin
ed symbol "client_print_color"
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(36) : error 017: undefin
ed symbol "geoip_city"
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(38) : error 017: undefin
ed symbol "client_print_color"
Here it also gives, error.
http://aghl.ru/webcompiler/webcompiler.php
__________________





Last edited by smurfavr; 03-13-2019 at 08:15.
smurfavr is offline
Send a message via Skype™ to smurfavr
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-13-2019 , 11:54   Re: TrafficID
Reply With Quote #6

Quote:
Originally Posted by smurfavr View Post
AMX Mod X v1.8.2-d server Hl1 eror
you'd need 1.9 to run this
__________________

Last edited by <VeCo>; 03-13-2019 at 11:55.
<VeCo> is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-13-2019 , 11:55   Re: TrafficID
Reply With Quote #7

This is definitely not for 1.8.2.
__________________

Last edited by DJEarthQuake; 02-05-2020 at 12:02. Reason: 1.8.3-dev-git5151-base should work
DJEarthQuake is offline
thEsp
BANNED
Join Date: Aug 2017
Old 03-13-2019 , 14:48   Re: TrafficID
Reply With Quote #8

Attach a zip file if it doesn't compile. Not everyone viewing this forums or thread is capable of coding, in this case compiling locally.
thEsp is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-13-2019 , 16:00   Re: TrafficID
Reply With Quote #9

Quote:
Originally Posted by thEsp View Post
Attach a zip file if it doesn't compile. Not everyone viewing this forums or thread is capable of coding, in this case compiling locally.
Everyone should know how to compile locally.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-13-2019 , 18:24   Re: TrafficID
Reply With Quote #10

Updates were made.
__________________

Last edited by DJEarthQuake; 02-05-2020 at 12:04. Reason: dev 1.83 tested successfully for geo
DJEarthQuake is offline
Reply



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 23:26.


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