Raised This Month: $32 Target: $400
 8% 

City Temperature on join | Updated Nov 26th 2022


Post New Thread Reply   
 
Thread Tools Display Modes
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-14-2019 , 08:51   Re: TrafficID
Reply With Quote #11

Thanks for the feedback. While I get the point of descriptive names let's not be too pushy.
__________________

Last edited by DJEarthQuake; 02-05-2020 at 12:01. Reason: moved nano to snippets
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-14-2019 , 14:00   Re: TrafficID
Reply With Quote #12

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
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-14-2019 , 20:42   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #13

Good .. you already will support the amx 1.9 I think you could have written the plugin so.

Spoiler


Some notes:
Steamid should be set to 35 or in amx 1.9 MAX_AUTHID_LENGHT
Nothing against using get_user_name, however you can set the name [MAX_NAME_LENGHT], or as I did in the example "% n".
Always use charsmax, it does not change much, but it is a healthy practice, and finally, in the client_disconnected (id) you get the "ip" but never use it.

It's just a suggestion, good night.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 03-14-2019 at 20:45.
iceeedr is offline
Send a message via Skype™ to iceeedr
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-14-2019 , 21:40   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #14

lol thx for the tips and tricks, hate occasional blank readings on connections, charsmax will also be a good exercise for me. Definitely a beer. It was so dinky I was wondering if it belonged in the snippets section until I saw how tiny the gamename changer is. That is off the hook.

Oh shoot you rewrote the alpha code. Thanks man.

Real quick why the Unions on the bot to hltv please? I thought that means if the bot is coming in from hltv exclusively.
__________________

Last edited by DJEarthQuake; 03-14-2019 at 21:45. Reason: U
DJEarthQuake is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-14-2019 , 22:06   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #15

Quote:
Originally Posted by DJEarthQuake View Post
lol thx for the tips and tricks, hate occasional blank readings on connections, charsmax will also be a good exercise for me. Definitely a beer. It was so dinky I was wondering if it belonged in the snippets section until I saw how tiny the gamename changer is. That is off the hook.

Oh shoot you rewrote the alpha code. Thanks man.

Real quick why the Unions on the bot to hltv please? I thought that means if the bot is coming in from hltv exclusively.
|| means "or", that is, if it is bot "or" hltv, then return. It does not affect your original code, it's just a way to check all conditions for "return" on a single line.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 03-15-2019 , 14:44   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #16

SXGEO Module do the self way ....
Godofwar is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 03-15-2019 , 21:07   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #17

I added a tested geoip module from 1.83 dev to OP along with a inc from 1.9. It will poll geoip coordinates whereas 1.9 is not on Linux. That is the next direction of this plugin is coordinates for displaying weather. Long story city, country can poll 5 locations whereas lon and lat is exact. iceeedr thank you again for your time and refresher. Last not least also everybody else for speaking up!
__________________
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-12-2019 , 02:38   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #18

Posting a variation of this plugin that tells the temperature of the players as they connect as well as city. Requirements: 1.9.0 and free openweathermap api key.
__________________

Last edited by DJEarthQuake; 02-05-2020 at 11:49. Reason: dead url
DJEarthQuake is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 10-15-2019 , 08:18   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #19

Quote:
Originally Posted by DJEarthQuake View Post
Posting a variation of this plugin that tells the temperature of the players as they connect as well as city. Requirements: 1.9.0 and free openweathermap api key.
Can you make a simple version, just name/city/temperature

"Player" connected from "City", temperature right now is "temp°"

Since 99% of the players is from the same country here, and mostly friends, so steamid only on log

Pretty sure will be handy for a lot of people
Thanks
tarsisd2 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-15-2019 , 15:06   Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Reply With Quote #20

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
Can you make a simple version, just name/city/temperature

"Player" connected from "City", temperature right now is "temp°"

Since 99% of the players is from the same country here, and mostly friends, so steamid only on log

Pretty sure will be handy for a lot of people
Thanks
The OP is updated. You are welcome and thank you for the great idea and feedback.

Quote:
///#define DEBUG
That will minimize the log and client print as requested.
__________________

Last edited by DJEarthQuake; 10-16-2019 at 16:45. Reason: finishing
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 16:54.


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