Raised This Month: $ Target: $400
 0% 

pause question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
commonbullet
Veteran Member
Join Date: Oct 2005
Old 12-17-2005 , 23:37   pause question
Reply With Quote #1

Is it possible to pause server and keep the script running?

I saw an interesting solution in a plugin - it would remove keybinds of players movements. I was wondering if there's a "cleaner" way to do that.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 12-18-2005 , 21:11  
Reply With Quote #2

Like the pause with the default amx commands?
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
commonbullet
Veteran Member
Join Date: Oct 2005
Old 12-20-2005 , 08:43  
Reply With Quote #3

I guess amx_pause will also prevent the script from running.
Is that right?
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 12-20-2005 , 12:22  
Reply With Quote #4

amx_pause doesn't stop any plugin from running, because it just immobilizes all the players ingame, but they can still chat and use console commands.
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
commonbullet
Veteran Member
Join Date: Oct 2005
Old 12-20-2005 , 20:06  
Reply With Quote #5

all right,
I'll try that.
thanks.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
VEN
Veteran Member
Join Date: Jan 2005
Old 12-22-2005 , 11:59  
Reply With Quote #6

Quote:
Originally Posted by Charr
they can still chat
That's incorrect.
Players can't chat while server is paused.
VEN is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 12-22-2005 , 13:21  
Reply With Quote #7

Quote:
Originally Posted by VEN
Quote:
Originally Posted by Charr
they can still chat
That's incorrect.
Players can't chat while server is paused.
If you use amx_pause they still can chat (tested it 2 minutes ago ;) )
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 12-22-2005 , 15:11  
Reply With Quote #8

I tested it to and my tests shows that they can't chat. :/
VEN is offline
commonbullet
Veteran Member
Join Date: Oct 2005
Old 12-22-2005 , 21:05  
Reply With Quote #9

I've made the following test:

Code:
#include <amxmodx> #include <amxmisc> new counter public plugin_init() {      register_clcmd ("amx_pausetest","counter_start") } public counter_start(){     set_task (1.0,"counter_inc1",0)     return PLUGIN_HANDLED } public counter_inc1(){      counter ++     server_print ("counter %d",counter)     set_task (1.0,"counter_inc2",0)     set_pause() } public counter_inc2(){     counter ++     server_print ("counter %d",counter)     set_task (1.0,"counter_inc1",0)     set_pause() } public set_pause (){     if (counter == 3 || counter == 5) //3 should pause, 5 should unpause         server_cmd("amx_pause")             return PLUGIN_CONTINUE }

I've observed that:
- When the counter is 3 the server is paused, but the script will not run anymore (the counter stops)
- when the server is paused you can send chat messages.

So I guess you can't control an 'amx_paused' server through script.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
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:52.


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