Raised This Month: $ Target: $400
 0% 

if(amx_off)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fabrizio guespe
Junior Member
Join Date: Aug 2010
Old 08-24-2010 , 21:32   if(amx_off)
Reply With Quote #1

is there a way of knowing is the amx is off or on?.

Lets say my plugin already has the public plugin_cfg. But i wanted to change some prints if the amx is off.

Thanks
fabrizio guespe is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-24-2010 , 22:06   Re: if(amx_off)
Reply With Quote #2

I can't find any method to do that but if you edit pausecfg.sma you could add in a cvar (or public variable) that would indicate it's status (on or off).
__________________
fysiks is offline
fabrizio guespe
Junior Member
Join Date: Aug 2010
Old 08-24-2010 , 22:09   Re: if(amx_off)
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
I can't find any method to do that but if you edit pausecfg.sma you could add in a cvar (or public variable) that would indicate it's status (on or off).
the i count with that, thank you anyway
fabrizio guespe is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 08-24-2010 , 23:36   Re: if(amx_off)
Reply With Quote #4

AFAIK if the AMX is off, you won't be able to do anything
Seta00 is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-24-2010 , 23:56   Re: if(amx_off)
Reply With Quote #5

Well, you could check how the command amx_on works? Cause amx_off doesn't turn that off, or the plugin that has amx_on in it makes it work when amx is off.

Just a thought.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-25-2010 , 00:04   Re: if(amx_off)
Reply With Quote #6

Quote:
Originally Posted by Seta00 View Post
AFAIK if the AMX is off, you won't be able to do anything
No. That's what i thought at first but after looking into it it only pauses certain plugins. Plugins added to the pausecfg list will not be paused.

Quote:
Originally Posted by fabrizio guespe View Post
the i count with that, thank you anyway
What? I just told you it is possible if I modify the pausecfg plugin (where amx_on and amx_off are executed). Then after that there will be a way to know when it is on or off.
__________________
fysiks is offline
DaxProxy
Senior Member
Join Date: Sep 2007
Old 08-25-2010 , 06:17   Re: if(amx_off)
Reply With Quote #7

The workaround for that would be that you will keep AMXX running but you'd pause every plugin that wouldn't stop you to use your third party plugin.
And then make an dummy plugin, and check if it's running thru your own plugin...or something like that.
__________________

Want ApolloRP for Counter-Strike? Show your support: http://forums.alliedmods.net/showthr...39#post1264739
DaxProxy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-25-2010 , 12:03   Re: if(amx_off)
Reply With Quote #8

Quote:
Originally Posted by DaxProxy View Post
The workaround for that would be that you will keep AMXX running but you'd pause every plugin that wouldn't stop you to use your third party plugin.
That's already how amx_off works. If you don't want it paused you just add it to the pause config.
__________________
fysiks is offline
Turkish
Junior Member
Join Date: Jul 2010
Old 08-25-2010 , 13:39   Re: if(amx_off)
Reply With Quote #9

if amx is off your plugin wouldn't work
__________________
Map Maker
Turkish is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-25-2010 , 13:40   Re: if(amx_off)
Reply With Quote #10

Quote:
Originally Posted by Turkish View Post
if amx is off your plugin wouldn't work
Quote:
Originally Posted by fysiks View Post
No. That's what i thought at first but after looking into it it only pauses certain plugins. Plugins added to the pausecfg list will not be paused.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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:57.


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