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)

tarsisd2 10-17-2019 12:30

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

iceeedr 10-17-2019 13:07

Re: City Temperature on join. | Updated (10/12/2019)
 
Quote:

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

The plugin is 1.9 amxx, so cromchat not needed.

tarsisd2 10-17-2019 13:22

Re: City Temperature on join. | Updated (10/12/2019)
 
Quote:

Originally Posted by iceeedr (Post 2669977)
The plugin is 1.9 amxx, so cromchat not needed.

client_print_color works, but with my idea of blue and red for different temperature would be easier with cromchat, since client_print_color x03 uses teamcolors, and with cromchat its easier to use &x07 = red and &x06 = blue
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

DJEarthQuake 10-17-2019 14:55

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.

Fuck For Fun 10-17-2019 15:04

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

DJEarthQuake 10-17-2019 16:03

Re: City Temperature on join. | Updated ML (10/17/2019)
 
Quote:

Originally Posted by Fuck For Fun (Post 2669990)
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

Depends. Check the IP on a individual basis. Occasionally somebody will show an IP of 127.0.0.1 as they join, then a real IP as they exit. In that case the IP would be the reason. Then there is the case that the IP is valid and it is not in free GeoIP database. The Core 1.9.0 had a bug in Linux GeoIP for a year. So IP can be valid and in the database while core GeoIP module wasn't polling longitude and latitude. It's fixed now. I optimized feed to retry instead of pass-on-fail. That should stop a lot of the nulls on my end.

tarsisd2 10-20-2019 08:47

Re: City Temperature on join. | Updated ML (10/18/2019)
 
portuguese translation

PHP Code:

[bp]
CLIENTEMP_PRINT ""%s" conectou de "%s", temperatura de %s° graus" 


DJEarthQuake 10-21-2019 21:13

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

Snake. 10-26-2019 19:52

Re: City Temperature on join. | Updated ML (10/22/2019)
 
Code:

[tr]
HUD_CLIENTEMP_PRINT = "%s "%s" yerinden baglandi, sicaklik suan %i°"
LOG_CLIENTEMP_PRINT = ""%s" "%s" yerinden baglandi, sicaklik suan "%i°""
CS_CLIENTEMP_PRINT = "^4%s ^3%s ^1yerinden baglandi, ^1sicaklik suan ^3%i°"
HL_CLIENTEMP_PRINT = "%s sicaklik suan %i derece."


DJEarthQuake 10-26-2019 23:57

Re: City Temperature on join. | Updated ML (10/26/2019)
 
Thank you once again Snake. for your Turkish translation work!


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

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