AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   City Temperature on join | Updated Nov 26th 2022 (https://forums.alliedmods.net/showthread.php?t=314896)

DJEarthQuake 03-14-2019 08:51

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

DJEarthQuake 03-14-2019 14:00

Re: TrafficID
 
Quote:

Originally Posted by fysiks (Post 2643048)
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

iceeedr 03-14-2019 20:42

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
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.

DJEarthQuake 03-14-2019 21:40

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
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.

iceeedr 03-14-2019 22:06

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
Quote:

Originally Posted by DJEarthQuake (Post 2643356)
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.

Godofwar 03-15-2019 14:44

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
SXGEO Module do the self way ....

DJEarthQuake 03-15-2019 21:07

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
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 10-12-2019 02:38

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
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.

tarsisd2 10-15-2019 08:18

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
Quote:

Originally Posted by DJEarthQuake (Post 2669550)
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

DJEarthQuake 10-15-2019 15:06

Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
 
Quote:

Originally Posted by tarsisd2 (Post 2615885)
your plugin could detect from what city is the player from and get the weather right for him!


Quote:

Originally Posted by tarsisd2 (Post 2669795)
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.


All times are GMT -4. The time now is 23:55.

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