Raised This Month: $ Target: $400
 0% 

Pausing plugins from other plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-09-2006 , 21:01   Pausing plugins from other plugins
Reply With Quote #1

According to this http://www.amxmodx.org/funcwiki.php?go=func&id=223
if I do
Code:
pause("ac", "myplugin.amxx")
its no longer unpauseable. So would I have to do
Code:
pause("acd", "myplugin.amxx")
in order to unpause it? Example, one plugin pauses another in one map timelimit. Before the map timelimit is over, can it be unpaused again?
organizedKaoS is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-10-2006 , 20:00  
Reply With Quote #2

use pause's sister function, unpause: http://www.amxmodx.org/funcwiki.php?go=func&id=222
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-10-2006 , 22:01  
Reply With Quote #3

Quote:
Originally Posted by Kraugh
use pause's sister function, unpause: http://www.amxmodx.org/funcwiki.php?go=func&id=222
Yes, I know of the unpause option, but according to the wiki, if you use pause("ac", "myplugin.amxx") <---This will no longer be unpauseable. Unless I mistinterpreted it. I basically want to pause a plugin when a certain mode is on in my server, when the mode is off, the plugin will be unpaused. Im not sure if its this way
Code:
if(mymode == 0)            pause("ac", "myplugin.amxx") else            unpause("ac", "myplugin.amxx")
I could be wrong, but in 1.60 this is the way I used to pause other plugins from within other plugins. The wiki said that in that way(above) the plugin will no longer be unpauseable. Any thoughts anyone? Thanks
organizedKaoS is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-10-2006 , 23:12  
Reply With Quote #4

it is an error in the wiki. examine the previous native header from the include:

Code:
/* Pauses function or plugin so it won't be executed. * In most cases param1 is name of function and * param2 name of plugin (all depends on flags). * Flags: * "a" - pause whole plugin. * "b" - pause function. * "c" - look outside the plugin (by given plugin name). * "d" - set "stopped" status when pausing whole plugin. * "e" - set "locked" status when pausing whole plugin. *       In this status plugin is unpauseable. * Example: pause("ac","myplugin.amx") *          pause("bc","myfunc","myplugin.amx") */ native pause(flag[], const param1[]="",const param2[]="");

it is clear that it was meant to look like this:
Code:
/* * "e" - set "locked" status when pausing whole plugin. *       In this status plugin is unpauseable. */

because "e" was deprecated, they removed only one of those lines from the wiki, and also there is no formatting in the wiki, so now it looks like this:

Code:
/* In this status plugin is unpauseable. Example: pause("ac","myplugin.amx") */

sorry if i'm making things sound too complicated. in short, it is now impossible to make plugins unpausable, and they forgot to remove all references from the wiki.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-10-2006 , 23:23  
Reply With Quote #5

So basically the way Ive been doing it
Code:
if(mymode == 0)      pause("ac", "myplugin.amxx") else      unpause("ac", "myplugin.amxx")
Will still work. Thanks for clearing this up for me Kraugh
organizedKaoS is offline
Reply


Thread Tools
Display Modes

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 20:25.


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