Raised This Month: $ Target: $400
 0% 

if a plugin is active


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-05-2007 , 16:59   if a plugin is active
Reply With Quote #1

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?
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-05-2007 , 17:05   Re: if a plugin is active
Reply With Quote #2

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

I believe this should work
__________________
No private support via Instant Message
GunGame:SM Released

Last edited by teame06; 05-05-2007 at 19:22.
teame06 is offline
Send a message via AIM to teame06
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-05-2007 , 17:35   Re: if a plugin is active
Reply With Quote #3

thx but it doesnt work
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-05-2007 , 17:49   Re: if a plugin is active
Reply With Quote #4

Quote:
Originally Posted by flyeni6 View Post
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.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-05-2007 , 17:53   Re: if a plugin is active
Reply With Quote #5

no i mean it wont compile lol
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 05-05-2007 , 19:23   Re: if a plugin is active
Reply With Quote #6

Quote:
Originally Posted by flyeni6 View Post
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.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 05-05-2007 , 19:34   Re: if a plugin is active
Reply With Quote #7

yea i am compiling localy
__________________

flyeni6 is offline
Send a message via AIM to flyeni6
B1ondu
Junior Member
Join Date: Apr 2007
Old 05-18-2007 , 08:03   Re: if a plugin is active
Reply With Quote #8

try with:

Code:
is_plugin_loaded("yourplugin.amxx")
__________________

[IMG]http://img107.**************/img107/8208/ssj3gokublondusigor0.png[/IMG]
[IMG]http://img112.**************/img112/7394/umdeveloperec1.jpg[/IMG]
B1ondu 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 06:34.


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