Raised This Month: $ Target: $400
 0% 

pause plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ish12321
Veteran Member
Join Date: May 2016
Old 03-28-2017 , 09:47   pause plugin
Reply With Quote #1

pause("c", "resetscore"); or pause("c", "resetscore.amxx");
which is correct?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-28-2017 , 10:29   Re: pause plugin
Reply With Quote #2

amx_pausecfg stop <pluginname> command. ?
__________________








CrazY. is offline
ish12321
Veteran Member
Join Date: May 2016
Old 03-28-2017 , 10:48   Re: pause plugin
Reply With Quote #3

need to use it in a plugin
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-28-2017 , 10:57   Re: pause plugin
Reply With Quote #4

I think you need use the second way.
__________________








CrazY. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-28-2017 , 11:12   Re: pause plugin
Reply With Quote #5

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[]="");
__________________
edon1337 is offline
ish12321
Veteran Member
Join Date: May 2016
Old 03-28-2017 , 11:33   Re: pause plugin
Reply With Quote #6

Quote:
Originally Posted by edon1337 View Post
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");
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-28-2017 , 12:47   Re: pause plugin
Reply With Quote #7

Quote:
Originally Posted by ish12321 View Post
so is this correct ?
pause("ac", "resetscore.amxx");
and then
unpause("ac", "resetscore.amxx");
Yes. I think 'a' flag is not needed.
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-28-2017 , 13:26   Re: pause plugin
Reply With Quote #8

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.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-28-2017 , 13:46   Re: pause plugin
Reply With Quote #9

If you trying to pause the plugin itself from itself just use the flag a without its name
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-28-2017 at 13:47.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
ish12321
Veteran Member
Join Date: May 2016
Old 03-28-2017 , 15:29   Re: pause plugin
Reply With Quote #10

If i'm pausing external plugin "a" flag is not needed?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 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 17:57.


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