AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Time info v1.1 [HUD+Narrator] (https://forums.alliedmods.net/showthread.php?t=311113)

thEsp 10-04-2018 13:25

Time info v1.1 [HUD+Narrator]
 
2 Attachment(s)
Time info v1.1

Description

This mod/plugin shows you current time as an HUD text.
Format for the time is: HH:MM:SS
Also you can use it to speak/narrate time.
Can be disabled or enabled [By players] for different purposes (For example: lag, too much texts, etc...)

Commands
  • [Client Command] "say /time_hide" - Enables or disables displayed HUD text (Default: enabled).
  • [Client Command] "say /time" - Narrates the time.

CVars
  • amx_time_red (Default: 0)
  • amx_time_green (Default: 255)
  • amx_time_blue (Default: 0)

Changelog

Versions


Note

Time is speaked automatically on new round.
Time is automatically showed (If "say /time_hide" is 0/disabled).
Time speaked is not always VERY correct. It may be 3-7 seconds late {Depending on user & server perfomance}.
Last version had 181 views/downloads.

Alber9091 10-04-2018 13:51

Re: Time-Info v1.0 [ HUD + Narrator ]
 
I believe Cvar should be added to Modify the clock.
Its not always the Host from same Country, the Community or Players are.

Example:
amx_cvar "thetime" "+4"
amx_cvar "thetime" "-4"

HamletEagle 10-04-2018 13:54

Re: Time-Info v1.0 [ HUD + Narrator ]
 
That is not going to work right if there's more than one player connected: iLag should be an array.

thEsp 10-04-2018 13:59

Re: Time-Info v1.0 [ HUD + Narrator ]
 
Quote:

Originally Posted by HamletEagle (Post 2618096)
That is not going to work right if there's more than one player connected: iLag should be an array.

Thanks in advace man. Going to check it.

thEsp 10-04-2018 14:00

Re: Time-Info v1.0 [ HUD + Narrator ]
 
Quote:

Originally Posted by Alber9091 (Post 2618095)
I believe Cvar should be added to Modify the clock.
Its not always the Host from same Country, the Community or Players are.

Example:
amx_cvar "thetime" "+4"
amx_cvar "thetime" "-4"

Would be cooler if that would be an newer version idea.
Thanks by the way :)

Fuck For Fun 10-06-2018 00:52

Re: Time-Info v1.0 [ HUD + Narrator ]
 
that's it? This simple and well known PLUGIN I think is not useful.

thEsp 10-06-2018 06:50

Re: Time-Info v1.0 [ HUD + Narrator ]
 
Quote:

Originally Posted by Fuck For Fun (Post 2618443)
that's it? This simple and well known PLUGIN I think is not useful.

Well, would you rather read time in-game or press start key to see time?

Relaxing 10-06-2018 09:06

Re: Time-Info v1.0 [ HUD + Narrator ]
 
thetime in chat works well

thEsp 03-12-2019 16:00

Re: Time info v1.1 [HUD+Narrator]
 
2019-03-12 8:59 (GMT+1) : Update v1.1

eat1k 03-12-2019 16:05

Re: Time info v1.1 [HUD+Narrator]
 
new bool:iLag[32]
1) Why "i"? It's a boolean. so bLag. Moreover, it should be MAX_PLAYERS+1 (32+1).
2) Better not to use ResetHUD.
3) get_cvar_num -> get_pcvar_num (if you want to support AMXX 1.8.2. If not, so just use bind_pcvar_*).
4)
PHP Code:

public StartThread(id) if(iLag[id]==false){ 

->
PHP Code:

public StartThread(id)
{
    if(!
iLag[id])
        
set_task(0.1"ShowTime"id);


And the same with other functions.

5) iTime should be szTime because it's a string.
6) new iTime[256] why 256?


All times are GMT -4. The time now is 07:59.

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