[REQUEST][Half-Life] HUD for timeleft, system clock w/ auto timezone
1 Attachment(s)
Hey !
Im interested in a HUD which would display the time that's left until map change and system clock. After a bit of research on the forums I've managed to find a plugin which displays system time only, maybe it would be possible to edit it? I'll attach the said plugin. Would it be possible to edit the following: #1 add timeleft until map change just below the system clock #2 make the HUD enabled by default upon entering the server #3 if its a possibility, make the whole HUD/font a bit smaller so that its less intrusive Thank you ! |
Re: [REQUEST][HL] timeleft, system clock HUD
timeleft code by xpaw
timezones from ai PHP Code:
|
Re: [REQUEST][HL] timeleft, system clock HUD
1 Attachment(s)
Quote:
I appreciate your help bigdaddy424, then I try to compile the code, I get multiple errors, I'll attach a photo: |
Re: [REQUEST][HL] timeleft, system clock HUD
Quote:
|
Re: [REQUEST][HL] timeleft, system clock HUD
to be honest all of my work i do does involve functions that are part of unofficial releases because i find it much simpler and sometimes people end up ignoring just because im not referencing 1.8.2
|
Re: [REQUEST][HL] timeleft, system clock HUD
Quote:
|
Re: [REQUEST][HL] timeleft, system clock HUD
Update:
Reopening the thread. I discovered an issue with the plugin, the one provided by bigdaddy424. I've set the "const SERVER_TIMEZONE = " to "0" to correspond my local time since it says "server timezone", so I figured it would be correct to adjust it to my local time, but other, foreign players seem to get the same timezone, the plugin doesn't adjust for them automatically. Would it be possible to make it so the plugin automatically selects the appropriate timezone for everyone? Or maybe scan player's pc system time and display that for him? |
Re: [REQUEST][HL] timeleft, system clock HUD
the default timezone would be where the server location is hosted, and you could try to use geoip to get the players country and display their timezone
https://forums.alliedmods.net/showthread.php?t=257898 |
Re: [REQUEST][HL] timeleft, system clock HUD
Quote:
Thank you for your insight and suggestion, it really makes sense to utilize GeoIP in someway for the timezones to be set automatically, I already use a few plugins which utilizes GeoIP, for example, GHW Connect Messages, which pushes a message when someone connect to a server with they country that they are located at. Sadly when it comes to coding or creating a plugin, my knowledge is seriously limited, Im only really capable of editing the simplest parameters within an already working plugin ... If you know a way to make it work, I'd really appreciate you landing me hand ! |
Re: [REQUEST][HL] timeleft, system clock HUD
something like this?
https://i.imgur.com/FF1MOoZ.png |
All times are GMT -4. The time now is 08:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.