AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Task during pause (https://forums.alliedmods.net/showthread.php?t=74431)

4JOKE 07-18-2008 16:19

Task during pause
 
I have setted on server "pausable 1".
Player will write into console "pause" and he pauses the game.

I need solution how to count how long last paused game.
Because when I want to start task which will every next minute print how long pause last, It doesn't function because everything is paused.

4JOKE 07-21-2008 14:40

Re: Task during pause
 
nobody dont know?

danielkza 07-21-2008 21:01

Re: Task during pause
 
Just get the system time when the game is paused, store it, get it again when the server un-pauses, and compare both valus to get how much time has passed.

4JOKE 07-22-2008 11:31

Re: Task during pause
 
Quote:

Originally Posted by danielkza (Post 656365)
Just get the system time when the game is paused, store it, get it again when the server un-pauses, and compare both valus to get how much time has passed.

Yes, but I want to show status during pause, like:
"Pause last 1min" ... "Pause last 2min" ... "Paus....

Is it possible?

hzqst 07-22-2008 11:54

Re: Task during pause
 
pausable 1
pause
show the text
pause
pausable 0
understand?

4JOKE 07-26-2008 08:03

Re: Task during pause
 
Quote:

Originally Posted by hzqst (Post 656639)
pausable 1
pause
show the text
pause
pausable 0
understand?

I think, that you dont understand. Because I think when I use client_cmd(id,"pause"), then game is paused and function set_task is paused too. So I cant every 1min say time by set_task.

hzqst 07-26-2008 08:28

Re: Task during pause
 
use another way to pause the game
set all players's maxspeed to 0.1 and godmode to 1

4JOKE 07-26-2008 10:40

Re: Task during pause
 
I think about that, but I rather need another solution.
If nobody know any another solution, I will have to probably do it as said danielkza . For now, his solution is for me best.


All times are GMT -4. The time now is 05:35.

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