Raised This Month: $ Target: $400
 0% 

Task during pause


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4JOKE
Member
Join Date: Jan 2008
Old 07-18-2008 , 16:19   Task during pause
Reply With Quote #1

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 is offline
4JOKE
Member
Join Date: Jan 2008
Old 07-21-2008 , 14:40   Re: Task during pause
Reply With Quote #2

nobody dont know?
4JOKE is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 07-21-2008 , 21:01   Re: Task during pause
Reply With Quote #3

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.
danielkza is offline
4JOKE
Member
Join Date: Jan 2008
Old 07-22-2008 , 11:31   Re: Task during pause
Reply With Quote #4

Quote:
Originally Posted by danielkza View Post
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?
4JOKE is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 07-22-2008 , 11:54   Re: Task during pause
Reply With Quote #5

pausable 1
pause
show the text
pause
pausable 0
understand?
hzqst is offline
4JOKE
Member
Join Date: Jan 2008
Old 07-26-2008 , 08:03   Re: Task during pause
Reply With Quote #6

Quote:
Originally Posted by hzqst View Post
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.
4JOKE is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 07-26-2008 , 08:28   Re: Task during pause
Reply With Quote #7

use another way to pause the game
set all players's maxspeed to 0.1 and godmode to 1
hzqst is offline
4JOKE
Member
Join Date: Jan 2008
Old 07-26-2008 , 10:40   Re: Task during pause
Reply With Quote #8

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.
4JOKE 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 05:35.


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