AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Condition Run Plugin (https://forums.alliedmods.net/showthread.php?t=135334)

albert123 08-15-2010 01:02

[HELP] Condition Run Plugin
 
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 ? :)

RedRobster 08-15-2010 01:12

Re: [HELP] Condition Run Plugin
 
Use is_plugin_loaded to check if plugin A is running. If it returns -1, use pause to pause plugin B.

albert123 08-15-2010 13:13

Re: [HELP] Condition Run Plugin
 
Can you write a example code by php,please ?

SpeeDeeR 08-15-2010 13:23

Re: [HELP] Condition Run Plugin
 
PHP Code:

if(is_plugin_loaded(myplugin)) pause("ac","myotherplugin.amxx"


albert123 08-16-2010 01:18

Re: [HELP] Condition Run Plugin
 
Oh, thank you so much ^^!


All times are GMT -4. The time now is 21:56.

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