City Temperature on join | Updated Nov 26th 2022
3 Attachment(s)
Quote:
Quote:
&Checksums.
Spoiler
Requires:
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
|
Re: TrafficID
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?
|
Re: TrafficID
Quote:
Thanks for your feedback. This is reposted and answered later. |
Re: TrafficID
AMX Mod X v1.8.2-d server Hl1 eror
Code:
//// named.smahttp://aghl.ru/webcompiler/webcompiler.php |
Re: TrafficID
Quote:
|
Re: TrafficID
This is definitely not for 1.8.2.
|
Re: TrafficID
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.
|
Re: TrafficID
Quote:
|
Re: TrafficID
Updates were made.
|
Re: TrafficID
Quote:
|
Re: TrafficID
Thanks for the feedback. While I get the point of descriptive names let's not be too pushy.
|
Re: TrafficID
Quote:
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 |
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. |
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. |
Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Quote:
|
Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
SXGEO Module do the self way ....
|
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!
|
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.
|
Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Quote:
"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 |
Re: 𝕋𝕣𝔸𝔽𝔽𝕀ℂ𝕚𝕕 for AMX 1.8.3+
Quote:
Quote:
Quote:
|
Re: City Temperature on join. | Updated (10/12/2019)
great work as always
more suggestions in case you want it - make it multilingual - make it colored messages, cromchat is great but any will be nice like "Player" connected from "City", temperature right now is "temp°" use blue for cold temp from -15° to 14°, and red for warm from 15° - play a sound when player connect, like buttons/bell1.wav (cvar for on off) - options for msg in chat or hud - option for client to disable notifications like /connect will think of a few more ideas thanks |
Re: City Temperature on join. | Updated (10/12/2019)
Quote:
|
Re: City Temperature on join. | Updated (10/12/2019)
Quote:
player and city green color, text default yellow, and temp blue or red depending on the value, i guess it can be done maybe i am mistaken |
Re: City Temperature on join. | Updated (10/12/2019)
TE_TEXTMESSAGE can accomplish multi-color and make the words look on fire or ice even with 1.8.2! What I thought would be great possibly is to have vox say 'the temperature now is whatever degrees' then have te_text take it from there on extreme temp ranges. ML support and the weather get sound is done. There are so many connect sounds on other plugins. What I picked and saved on OP definitely sounds like the weather and only plays when it gets the weather. That's close to connect but not on top eliminating any interference.
|
Re: City Temperature on join. | Updated ML (10/17/2019)
nice sharing, any image?
An undefined location is incorrect at the IP address or region or IP has changed and will show another region? I forgot how to check by dialer area |
Re: City Temperature on join. | Updated ML (10/17/2019)
Quote:
|
Re: City Temperature on join. | Updated ML (10/18/2019)
portuguese translation
PHP Code:
|
Re: City Temperature on join. | Updated ML (10/21/2019)
Thank you @tarsisd2 for the portuguese translation.
The color version is ready. It needs some testing and tuning. https://i.kym-cdn.com/photos/images/...10/479/1d4.gifhttps://i.kym-cdn.com/photos/images/...10/432/468.gif |
Re: City Temperature on join. | Updated ML (10/22/2019)
Code:
[tr] |
Re: City Temperature on join. | Updated ML (10/26/2019)
Thank you once again Snake. for your Turkish translation work!
|
Re: City Temperature on join. | Updated ML (11/02/2019)
Remade a bunch of stuff. Most notably the plugin won't crash if it is installed without the databases or other files.
|
Re: City Temperature on join. | Updated ML (Sat 04/04/2020)
Add measure units such as Farenheit or Celsius. 15° farenheit is pretty cold, as 15° Celcius is a whole lot warmer.
|
Re: City Temperature on join. | Updated ML (Sat 04/04/2020)
Quote:
Code:
|
Re: City Temperature on join. | Updated ML (Sat 04/04/2020)
Add it to your description or screenshot.
|
Re: City Temperature on join. | Updated ML (Sat 04/04/2020)
Taken care of. What else?
|
Re: City Temperature on join. | Updated ML (Sat 04/04/2020)
Quote:
|
Re: City Temperature on join | Updated 10/04/2020
Gave plugin a queue. It cuts down on socket turbulence. Socket is set to busy with a boolean and the queue runs every so often to assure all the players' temps have been read and not duplicated. The socket function independently makes itself busy when being used and later reschedules other calls for temp readings on other players if pinged when in use. If in debugging mode, the sockets are a lot more descriptive in console with what player is using the socket and what point through the process are they.
new cvars temp_long 0|1 is for acquiring temperature off longitude and latitude instead of city. Amxx182 cannot do that with GeoIP+ module so it is set to city by default. temp_debug 0|1 Debugging is at the convenience of a CVAR instead of the nuisance of recompiling. Old news but worth mentioning in case it is new to you.
Developer footnote. Next version. Stream-lining player by steamID like this. Instead of PLAYER_INDEX+CONSTANT_INTEGER. Minimizes data meshing. Sometimes Amxx never closes the socket right and the netstat will show CLOSE_WAIT indefinitely until process is killed not restarted. kILLeD!
Spoiler
|
Re: City Temperature on join | Updated 06/20/2021
Found a socket related crash bug even with a queue locking down the socket so no other players can get their temp simultaneous. The timing needed advanced. Posting much needed update. Feel free to PM me.
|
| All times are GMT -4. The time now is 23:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.