Raised This Month: $ Target: $400
 0% 

through the plugin file to unlock


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dunix
BANNED
Join Date: Jun 2008
Old 04-20-2010 , 12:17   through the plugin file to unlock
Reply With Quote #1

I have one plugin X which can change fail Y
How can i do the choosen plugin X to unlock fail Y
and when change is done it's lock it.
dunix is offline
Dowell707
Senior Member
Join Date: Apr 2009
Location: Location:Location:Locati
Old 04-21-2010 , 01:20   Re: through the plugin file to unlock
Reply With Quote #2

what is x and y?
__________________
Dowell707 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-21-2010 , 17:45   Re: through the plugin file to unlock
Reply With Quote #3

What is "fail Y"?? I don't get it. You need to elaborate in comprehensible english.
__________________
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-21-2010 , 18:05   Re: through the plugin file to unlock
Reply With Quote #4

he wants 2 plugins.

a first one: x
a second one :y

and he want to make someone in plugin x, that can make plugin y fail.

example:

Plugin x:

PHP Code:
public plugin_init()
{
    
register_cvar("sv_yfail""0")

Plugin y
PHP Code:
public plugin_init()
{
    if(
get_pcvar_num(sv_yfail) == 1)
        
//Stop plugin code

    
return PLUGIN_HANDLED

NOTE: this will NOT work, so don't try it.
This is just a simple example for the more advanced coders.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-21-2010 , 18:43   Re: through the plugin file to unlock
Reply With Quote #5

That's what I assumed it meant but I'm not about to do work on something that he might not need . How do you know that is what he wants for sure?

If that is the case using a create the cvar in plugin Y and check it before doing any functions then in plugin X, just set the cvar to 0. Simple as that.
__________________
fysiks is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-21-2010 , 18:45   Re: through the plugin file to unlock
Reply With Quote #6

i mean it is something like that, he wants to disable a plugin through another one
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-22-2010 , 01:09   Re: through the plugin file to unlock
Reply With Quote #7

server_cmd("amxx pause myplugin");
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-22-2010 , 04:15   Re: through the plugin file to unlock
Reply With Quote #8

Quote:
Originally Posted by Owyn View Post
server_cmd("amxx pause myplugin");
never though it was so simple
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
xtinct
Senior Member
Join Date: Jan 2010
Location: http://tekxtinct.ning.co
Old 04-23-2010 , 01:31   Re: through the plugin file to unlock
Reply With Quote #9

a spambot?
[Cause he has neither replied nor made any other post]
__________________
Sorry If I Hurt! Orpheu

1 crab has been found and delivered my me.
xtinct is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-23-2010 , 01:41   Re: through the plugin file to unlock
Reply With Quote #10

Quote:
Originally Posted by xtinct View Post
a spambot?
[Cause he has neither replied nor made any other post]
His other posts don't seem spambot like.
__________________
fysiks 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 22:35.


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