AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Stop/change round time (https://forums.alliedmods.net/showthread.php?t=188514)

Desikac 06-27-2012 09:20

Stop/change round time
 
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.

Liverwiz 06-27-2012 13:45

Re: Stop/change round time
 
server_cmd("pause")

Exolent[jNr] 06-27-2012 14:36

Re: Stop/change round time
 
Use Infinite Round to stop all round times.
Then, create your own timer and use Round Terminator to end the round.

Desikac 06-27-2012 15:57

Re: Stop/change round time
 
Quote:

Originally Posted by Exolent[jNr] (Post 1737433)
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.

Exolent[jNr] 06-27-2012 16:00

Re: Stop/change round time
 
sv_pausable 0 should disable the pause command.

Desikac 06-27-2012 16:08

Re: Stop/change round time
 
But how to detect when a client types it in console?

Liverwiz 06-27-2012 16:25

Re: Stop/change round time
 
client's don't have access to it. (basically)

Desikac 06-27-2012 16:27

Re: Stop/change round time
 
Quote:

Originally Posted by Liverwiz (Post 1737528)
client's don't have access to it. (basically)

Not the sv_pausable cvar... The pause command.

Backstabnoob 06-27-2012 16:28

Re: Stop/change round time
 
if sv_pausable is 1, everyone has access to it. You cannot detect it, it's not hookable, I tried it.

Liverwiz 06-27-2012 17:23

Re: Stop/change round time
 
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.


All times are GMT -4. The time now is 06:14.

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