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

DeathMatch Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
doondook
Member
Join Date: Dec 2010
Old 11-26-2011 , 13:31   DeathMatch Timer
Reply With Quote #1

- - - Description
DHUD timer for infinite round mods.

This plugin replaces standard timer (which becomes useless at such mods) with the DHUD one. You can choose what time to display: map time left or current time.
- - - CVARs
dt_type (default: 1) - default type of time displayed:
1 - current time
2 - map timeleft
0 or other numbers - timer is not displayed
Dividers which replace each other every second:

dt_devider1 (default: ":") - 1st divider
dt_devider2 (default: ".") - 2nd divider

dt_color (default: "255 255 10") - timer color
- - - Commands
say /timer to switch timer type. It will be switched in order.
- - - Requirements
- <dhudmessage>
- - - Change Log
ver. 1.1
- Players can choose timer type by chat command (say /timer)
- One CVAR is used for setting timer color
ver. 1.0
- Release
- - - Download
YOU NEED TO COMPILE IT LOCALLY!
Attached Files
File Type: sma Get Plugin or Get Source (dmtimer.sma - 1587 views - 3.7 KB)

Last edited by doondook; 12-11-2011 at 19:58.
doondook is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-26-2011 , 14:14   Re: DeathMatch Timer
Reply With Quote #2

'YOU NEED TO COMPILE IT LOCALLY!'

Post the include.

edit: lol, sorry
__________________

Last edited by kramesa; 11-26-2011 at 14:23.
kramesa is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-26-2011 , 14:16   Re: DeathMatch Timer
Reply With Quote #3

Quote:
Originally Posted by kramesa View Post
'YOU NEED TO COMPILE IT LOCALLY!'

Post the include.
He put a link in the first post.
Learn to read.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 11-27-2011 , 12:56   Re: DeathMatch Timer
Reply With Quote #4

well, i suggest to make a single cvar for rgb color like "255 220 10"
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-27-2011 , 14:07   Re: DeathMatch Timer
Reply With Quote #5

It would be better to use the current timer but forcing it to use the time you want.
__________________
Arkshine is offline
doondook
Member
Join Date: Dec 2010
Old 11-28-2011 , 12:00   Re: DeathMatch Timer
Reply With Quote #6

Updated.
doondook is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 11-29-2011 , 04:50   Re: DeathMatch Timer
Reply With Quote #7

not bad, but add support for say_team, isnt so hard to add a line
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
doondook
Member
Join Date: Dec 2010
Old 11-29-2011 , 05:19   Re: DeathMatch Timer
Reply With Quote #8

As i know adding the same command for both say and say_team blocks it in chat. So it's better to leave it only for global chat to let other players to view it. Anyway i can precache say and say_team and make it there but i dont think that it's necessary.
doondook is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 11-29-2011 , 05:48   Re: DeathMatch Timer
Reply With Quote #9

Quote:
Originally Posted by doondook View Post
As i know adding the same command for both say and say_team blocks it in chat. So it's better to leave it only for global chat to let other players to view it. Anyway i can precache say and say_team and make it there but i dont think that it's necessary.
whut? say team is shown only in say_team and is not blocking anything since you return the value correctly.
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
doondook
Member
Join Date: Dec 2010
Old 11-29-2011 , 07:59   Re: DeathMatch Timer
Reply With Quote #10

Yep, i was wrong. It was old experience (:
Added for say_team.
doondook is offline
Reply



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 06:24.


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