Raised This Month: $ Target: $400
 0% 

[HELP] Condition Run Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 08-15-2010 , 01:02   [HELP] Condition Run Plugin
Reply With Quote #1

I have problem that i want everybody help. I want: If plugin A run, plugin B can run... ( if plugin A don't run, plugin B never run). A,B is plugin's name. How to do this and can show me the code, please ?
__________________
albert123 is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 08-15-2010 , 01:12   Re: [HELP] Condition Run Plugin
Reply With Quote #2

Use is_plugin_loaded to check if plugin A is running. If it returns -1, use pause to pause plugin B.
RedRobster is offline
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 08-15-2010 , 13:13   Re: [HELP] Condition Run Plugin
Reply With Quote #3

Can you write a example code by php,please ?
__________________
albert123 is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 08-15-2010 , 13:23   Re: [HELP] Condition Run Plugin
Reply With Quote #4

PHP Code:
if(is_plugin_loaded(myplugin)) pause("ac","myotherplugin.amxx"
SpeeDeeR is offline
albert123
Veteran Member
Join Date: Mar 2009
Location: VietNam, Hai Phong
Old 08-16-2010 , 01:18   Re: [HELP] Condition Run Plugin
Reply With Quote #5

Oh, thank you so much ^^!
__________________
albert123 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 21:56.


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