Raised This Month: $12 Target: $400
 3% 

Time info v1.1 [HUD+Narrator]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Statistical       
thEsp
BANNED
Join Date: Aug 2017
Old 10-04-2018 , 13:25   Time info v1.1 [HUD+Narrator]
Reply With Quote #1

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.
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	1030
Size:	65.8 KB
ID:	171692  
Attached Files
File Type: sma Get Plugin or Get Source (amx_timeinfo.sma - 487 views - 5.0 KB)

Last edited by thEsp; 03-12-2019 at 16:20. Reason: Update
thEsp is offline
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 10-04-2018 , 13:51   Re: Time-Info v1.0 [ HUD + Narrator ]
Reply With Quote #2

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"
Alber9091 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-04-2018 , 13:54   Re: Time-Info v1.0 [ HUD + Narrator ]
Reply With Quote #3

That is not going to work right if there's more than one player connected: iLag should be an array.
__________________
HamletEagle is offline
thEsp
BANNED
Join Date: Aug 2017
Old 10-04-2018 , 13:59   Re: Time-Info v1.0 [ HUD + Narrator ]
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
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 is offline
thEsp
BANNED
Join Date: Aug 2017
Old 10-04-2018 , 14:00   Re: Time-Info v1.0 [ HUD + Narrator ]
Reply With Quote #5

Quote:
Originally Posted by Alber9091 View Post
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
thEsp is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 10-06-2018 , 00:52   Re: Time-Info v1.0 [ HUD + Narrator ]
Reply With Quote #6

that's it? This simple and well known PLUGIN I think is not useful.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
thEsp
BANNED
Join Date: Aug 2017
Old 10-06-2018 , 06:50   Re: Time-Info v1.0 [ HUD + Narrator ]
Reply With Quote #7

Quote:
Originally Posted by Fuck For Fun View Post
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?
thEsp is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 10-06-2018 , 09:06   Re: Time-Info v1.0 [ HUD + Narrator ]
Reply With Quote #8

thetime in chat works well
__________________
Relaxing is offline
thEsp
BANNED
Join Date: Aug 2017
Old 03-12-2019 , 16:00   Re: Time info v1.1 [HUD+Narrator]
Reply With Quote #9

2019-03-12 8:59 (GMT+1) : Update v1.1
thEsp is offline
eat1k
Senior Member
Join Date: Apr 2018
Old 03-12-2019 , 16:05   Re: Time info v1.1 [HUD+Narrator]
Reply With Quote #10

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?
__________________

Last edited by eat1k; 03-12-2019 at 16:10.
eat1k is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:33.


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