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

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, 298 views)
File Type: txt clientemp.txt (5.6 KB, 242 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-12-2019 , 23:53   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?

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 #4

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 #5

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 #6

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 #7

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 #8

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 #9

Updates were made.
__________________

Last edited by DJEarthQuake; 02-05-2020 at 12:04. Reason: dev 1.83 tested successfully for geo
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-13-2019 , 22:39   Re: TrafficID
Reply With Quote #10

Quote:
Originally Posted by DJEarthQuake View Post
Since when did you become a nominalist? I did not know you were multi-talented! Now that makes absolutely no sense. This identifies the network traffic and places it into log file. Follow? Sure there are others similar albeit unmaintained and unnecessarily convoluted big code. This works. One tiny sma. Void of tons of other files and instructions. Just drop it in and it works. You cannot force me to use other scripts or discourage me from sharing fix with sample code especially when GeoIP is packaged wrong leaving bad code on the street on a much more grandiose scale than you can fathom. I was the first one to point out the problem with GeoIP here if you take the time to read the details. It was packaged wrong. Why not use the code from the guy who got it working? Use it on your DoD server and let me know what it does to it. =P If you have any players you will know where your traffic is coming from. Identified. There are more issues with GeoIP and this was not intended to be released as is. It was going to have the weather pushed to it also of each new connection IE traffic. The so-called 'Traffic', I am not the only one to call it that buddy. Wikiapedia has an entire page dedicated to it. The ID? Really? Okay. Thanks for helping me be patient and explain what this does if the name ambiguates it some how please suggest a new name now. I see it as unique and that was what I named it. It is actually called named.sma. Not to confuse you. Name like a name server, a DNS server, resolves the IP through name server say to alliedmods.net. Similarly TrafficID called name was like my name server for my GoldSource farm. I had alpha version name a b c d e was for element. Left pending. This stable version is D name D. named.sma. D is combo of the B and C version. C was for counter-strike. The GeoIP IP ID which is an abbreviation for identify. Identifies the connector by country, region, and city. Region is state for U.S. and region for everybody else so I just called it region. It is in your destiny to test the D for DoD. Please let me know if you do not see colored messages like on CS. If not I will tell you it is WW2.

https://en.wikipedia.org/wiki/Internet_traffic
Wow, what in the world is this nonsensical post? Your plugin does not log "internet traffic", it only logs the location from which a player is connecting based on their IP address (so not "traffic" and not an "id"). Also, the title of your thread doesn't exist in your post nor is it the name of your .sma file (which is named nonsensical). It's just confusing and should be reasonably consistent for people to even take you seriously.
__________________

Last edited by fysiks; 03-13-2019 at 22:40.
fysiks 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 18:31.


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