AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   if a plugin is active (https://forums.alliedmods.net/showthread.php?t=54853)

flyeni6 05-05-2007 16:59

if a plugin is active
 
If a plugin is active how do i make special commands happen.

Like if
csdm_ffa.amxx was active i wanted to make a new round start sound

does anyone know how to do this?

teame06 05-05-2007 17:05

Re: if a plugin is active
 
Code:
#include <amxmodx> #include <csdm> public csdm_StateChange(csdm_state) {      if(csdm_state == CSDM_FFA_ENABLE)      {           // Do round restart      } }

I believe this should work

flyeni6 05-05-2007 17:35

Re: if a plugin is active
 
thx but it doesnt work

teame06 05-05-2007 17:49

Re: if a plugin is active
 
Quote:

Originally Posted by flyeni6 (Post 473805)
thx but it doesnt work

This only works if the FFA mode was change manually to be enabled. Otherwise the one from map load will not have any effect if it was always enabled.

flyeni6 05-05-2007 17:53

Re: if a plugin is active
 
no i mean it wont compile lol

teame06 05-05-2007 19:23

Re: if a plugin is active
 
Quote:

Originally Posted by flyeni6 (Post 473809)
no i mean it wont compile lol

Then say it won't compile next time and say the error. Just don't say it does not work. Look at previous post. I edit because there was a misspelling.

P.S. If you are trying to compile this on the website compiler it won't work. You must compile it locally yourself.

flyeni6 05-05-2007 19:34

Re: if a plugin is active
 
yea i am compiling localy

B1ondu 05-18-2007 08:03

Re: if a plugin is active
 
try with:

Code:

is_plugin_loaded("yourplugin.amxx")


All times are GMT -4. The time now is 06:34.

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