AlliedModders

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

ish12321 03-28-2017 09:47

pause plugin
 
pause("c", "resetscore"); or pause("c", "resetscore.amxx");
which is correct?

CrazY. 03-28-2017 10:29

Re: pause plugin
 
amx_pausecfg stop <pluginname> command. ?

ish12321 03-28-2017 10:48

Re: pause plugin
 
need to use it in a plugin

CrazY. 03-28-2017 10:57

Re: pause plugin
 
I think you need use the second way.

edon1337 03-28-2017 11:12

Re: pause plugin
 
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. * "c" - look outside the plugin (by given plugin name). * "d" - set "stopped" status when pausing whole plugin. *       In this status plugin is unpauseable.  * Example: pause("ac","myplugin.amxx") * * Note: There used to be the b and e flags as well, * which have been deprecated and are no longer used. */ native pause(const flag[], const param1[]="",const param2[]="");

ish12321 03-28-2017 11:33

Re: pause plugin
 
Quote:

Originally Posted by edon1337 (Post 2507388)
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. * "c" - look outside the plugin (by given plugin name). * "d" - set "stopped" status when pausing whole plugin. *       In this status plugin is unpauseable.  * Example: pause("ac","myplugin.amxx") * * Note: There used to be the b and e flags as well, * which have been deprecated and are no longer used. */ native pause(const flag[], const param1[]="",const param2[]="");

so is this correct ?
pause("ac", "resetscore.amxx");
and then
unpause("ac", "resetscore.amxx");

edon1337 03-28-2017 12:47

Re: pause plugin
 
Quote:

Originally Posted by ish12321 (Post 2507393)
so is this correct ?
pause("ac", "resetscore.amxx");
and then
unpause("ac", "resetscore.amxx");

Yes. I think 'a' flag is not needed.

OciXCrom 03-28-2017 13:26

Re: pause plugin
 
Was it so hard to test this?!
Both are correct. Even just "reset" will work, but you should use the full name + the extension, because without it it can match another plugin as well.

Natsheh 03-28-2017 13:46

Re: pause plugin
 
If you trying to pause the plugin itself from itself just use the flag a without its name

ish12321 03-28-2017 15:29

Re: pause plugin
 
If i'm pausing external plugin "a" flag is not needed?


All times are GMT -4. The time now is 17:57.

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