Raised This Month: $ Target: $400
 0% 

*using plugin_handled


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Amonel
Senior Member
Join Date: May 2009
Old 10-30-2009 , 17:22   *using plugin_handled
Reply With Quote #1

PHP Code:
*deleted 
the plugin works, but i have.. 1 dilemma.
using "return PLUGIN_HANDLED;"
it shouldn't appear that i typed "/show" (AmoneL: /show)

Last edited by Amonel; 11-01-2009 at 05:35.
Amonel is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-30-2009 , 17:26   Re: noob question, noob title..
Reply With Quote #2

You have to return PLUGIN_HANDLED in the say command hook, not the menu hook.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Amonel
Senior Member
Join Date: May 2009
Old 10-30-2009 , 17:46   Re: noob question, noob title..
Reply With Quote #3

i moved it around but i still don't know where to put it
Amonel is offline
D!DD!
Member
Join Date: Jul 2007
Old 10-30-2009 , 18:10   Re: noob question, noob title..
Reply With Quote #4

Im a noob to but this i what i guess

Quote:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_clcmd("say /show","clcmd_netsetup");

return PLUGIN_HANDLED
}

g_msgsaytext = get_user_msgid("SayText")
}
Or something like that xD (I can't script. Im a noob)
__________________
D!DD! is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-31-2009 , 00:00   Re: noob question, noob title..
Reply With Quote #5

Quote:
Originally Posted by D!DD! View Post
Im a noob to but this i what i guess



Or something like that xD (I can't script. Im a noob)
No.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-31-2009 , 01:02   Re: noob question, noob title..
Reply With Quote #6

Quote:
Originally Posted by D!DD! View Post
Im a noob to but this i what i guess



Or something like that xD (I can't script. Im a noob)
You already told us you know nothing so it's a bad idea to try and suggest code. FYI.
__________________
fysiks is offline
Amonel
Senior Member
Join Date: May 2009
Old 10-31-2009 , 04:17   Re: noob question, noob title..
Reply With Quote #7

ok.. so no one is able to help me ?
Amonel is offline
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 10-31-2009 , 04:23   Re: noob question, noob title..
Reply With Quote #8

PHP Code:
public plugin_init() 
{
    
register_clcmd("say","sayfunction");
}
        
public 
sayfunction(id)
{
    
//..code
    
return PLUGIN_HANDLED

PHP Code:
//Plugin passes through operation.  Whatever called it continues.
#define PLUGIN_CONTINUE        0
//Plugin halts continued operation (plugins following in the plugins.ini won't be called).
//Whatever called it will eventually supercede.
#define PLUGIN_HANDLED        1
//Continue calling plugins but halt the operation
#define PLUGIN_HANDLED_MAIN    2 
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
Amonel
Senior Member
Join Date: May 2009
Old 10-31-2009 , 04:50   Re: noob question, noob title..
Reply With Quote #9

i should have used plugin_continue :-)

thanks anyway
Amonel is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-31-2009 , 14:06   Re: noob question, noob title..
Reply With Quote #10

Quote:
Originally Posted by Amonel View Post
ok.. so no one is able to help me ?
Exolent told you the solution.


Quote:
Originally Posted by Amonel View Post
i should have used plugin_continue :-)
No. If you want it to work as you said in your your first post you must return PLUGIN_HANDLED.

Quote:
Originally Posted by Amonel View Post
it shouldn't appear that i typed "/show" (AmoneL: /show)
__________________
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 17:44.


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