Raised This Month: $32 Target: $400
 8% 

Round Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-07-2014 , 11:14   Re: Round Timer
Reply With Quote #21

It really bugs me a year and a half after the original version was posted, it's still hard-coded to use TF2-specific events. I mean, it literally takes less than 5 minutes to fix this.

In fact, here's the version from the first post with this fixed.
Attached Files
File Type: sp Get Plugin or Get Source (roundtimer.sp - 469 views - 6.0 KB)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-07-2014 , 14:01   Re: Round Timer
Reply With Quote #22

Quote:
Originally Posted by Powerlord View Post
Code:
C:\Projects\SourceMod\plugins\roundtimer.sp(7) : fatal error 120: cannot read from file: "jackofdesigns"
Forgetting a file?
I keep derping all over the place today. lol

Updated Here:
https://forums.alliedmods.net/showpo...4&postcount=19

Last edited by Drixevel; 03-07-2014 at 14:09.
Drixevel is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-07-2014 , 14:09   Re: Round Timer
Reply With Quote #23

Quote:
Originally Posted by r3dw3r3w0lf View Post
I keep derping all over the place today. lol
If you really wanted to, you could copy the 5 HookEvent/HookEventEx lines from the code I posted two posts up from this into your version (overwriting the HookEvent lines already present). Voila, cross-game compatibility!

Incidentally, HookEventEx is because I'm too lazy to do a GetEngineVersion check and HookEventEx doesn't error when it attempts to hook an event that a game doesn't support.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-07-2014 at 14:10.
Powerlord is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-07-2014 , 14:10   Re: Round Timer
Reply With Quote #24

Quote:
Originally Posted by Powerlord View Post
If you really wanted to, you could copy the 5 HookEvent/HookEventEx lines from the code I posted two posts up from this into your version (overwriting the HookEvent lines already present). Voila, cross-game compatibility!

Incidentally, HookEventEx is because I'm too lazy to do a GetEngineVersion check and HookEventEx doesn't error when it attempts to hook an event that a game doesn't support.
Did I beat you to it or did you beat me to it? I can't tell. lol
Drixevel is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-07-2014 , 14:19   Re: Round Timer
Reply With Quote #25

Quote:
Originally Posted by r3dw3r3w0lf View Post
Did I beat you to it or did you beat me to it? I can't tell. lol
I didn't look at the new version before replying so... I don't know either.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Spyper
Senior Member
Join Date: Sep 2013
Old 08-28-2014 , 12:30   Re: Round Timer
Reply With Quote #26

If slay is disabled,It is not ending round,
Spyper is offline
Premonition
Junior Member
Join Date: Aug 2014
Old 08-30-2014 , 18:28   Re: Round Timer
Reply With Quote #27

Can this plugin be made to slay people once an map from RTV has been chosen? Specifically with mapchooser extended support please. Just want to get drops on my server.

Last edited by Premonition; 08-30-2014 at 18:28.
Premonition is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 05-27-2015 , 13:11   Re: Round Timer
Reply With Quote #28

Any idea how can i put a custom time on every map?

Edit: I figured out myself! You just put
Code:
//
in front of this line of the plugin
Code:
AutoExecConfig(true, "plugin.roundtimer");
and put a specific time in cfg/mapname.cfg. Voila! You have custom time on different maps. Make sure you put a default time in your server.cfg, as if you don't, it will take the time from last map...

Last edited by misterG; 06-01-2015 at 12:34.
misterG is offline
aao
Member
Join Date: Aug 2009
Old 06-07-2015 , 15:27   Re: Round Timer
Reply With Quote #29

delete
__________________

Last edited by aao; 06-07-2015 at 15:31.
aao is offline
111112oo
Junior Member
Join Date: Oct 2012
Old 04-09-2016 , 22:12   Re: Round Timer
Reply With Quote #30

So, when the timer ends, and a new round is played, in arena mode, the timer will suddenly not appear and stop working for all following rounds. The timer will not stop working if the round ends in any other way. The commands I have set up for the timer are:
Code:
sm_roundtimer_enabled 1
sm_roundtimer_time 600
sm_roundtimer_hud 1
sm_roundtimer_commands "sm_car @all off;sm_say GAME... OVER!;sm_slay @all"
Any help?
111112oo 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 17:15.


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