Raised This Month: $ Target: $400
 0% 

Stop/change round time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 06-27-2012 , 09:20   Stop/change round time
Reply With Quote #1

Is there a way to change the value of the remaining round time? (Not just the time displayed on the players' hud but the actual round time).

I want to make a pause command that will freeze the round timer (c4 timer too if it's planted), immobilize the players and prevent them from shooting.
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-27-2012 , 13:45   Re: Stop/change round time
Reply With Quote #2

server_cmd("pause")
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-27-2012 , 14:36   Re: Stop/change round time
Reply With Quote #3

Use Infinite Round to stop all round times.
Then, create your own timer and use Round Terminator to end the round.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 06-27-2012 , 15:57   Re: Stop/change round time
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
Use Infinite Round to stop all round times.
Then, create your own timer and use Round Terminator to end the round.
Thanks, I think I got it now.

But how can I block or at least detect the usage of the "pause" command?
register_clcmd("pause"... doesn't work.
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-27-2012 , 16:00   Re: Stop/change round time
Reply With Quote #5

sv_pausable 0 should disable the pause command.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 06-27-2012 , 16:08   Re: Stop/change round time
Reply With Quote #6

But how to detect when a client types it in console?
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-27-2012 , 16:25   Re: Stop/change round time
Reply With Quote #7

client's don't have access to it. (basically)
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Desikac
Senior Member
Join Date: Apr 2010
Location: Serbia
Old 06-27-2012 , 16:27   Re: Stop/change round time
Reply With Quote #8

Quote:
Originally Posted by Liverwiz View Post
client's don't have access to it. (basically)
Not the sv_pausable cvar... The pause command.
Desikac is offline
Send a message via MSN to Desikac Send a message via Skype™ to Desikac
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-27-2012 , 16:28   Re: Stop/change round time
Reply With Quote #9

if sv_pausable is 1, everyone has access to it. You cannot detect it, it's not hookable, I tried it.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-27-2012 , 17:23   Re: Stop/change round time
Reply With Quote #10

Oh.....well i learned something today.
I thought it was just for clients to pause their host server. For career purposes and such. And an admin command to pause the server when needed. i always used amxmodmenu to do it.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz 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 15:15.


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