My command.
I always see plugin have command.But their command different with my command.
My command do not see at chat.How to make it can see at chat? I will +karma who help me.:) |
Re: My command.
I'd help you if I understood what you were trying to say. O_o
Are you saying that you want your command to print something? http://www.amxmodx.org/funcwiki.php?go=func&id=22 |
Re: My command.
Ok,I give the code.
PHP Code:
It will show like this: Respawn left:2 I see at one plugin,it show like this.Example that was my plugin. ianglowz:/respawn Respawn left at ianglowz:2 I want like this because many people don't that my server has respawn plugin. |
Re: My command.
Change "return PLUGIN_HANDLED" to "return PLUGIN_CONTINUE"
|
Re: My command.
Which return must be changed?
PHP Code:
|
Re: My command.
PHP Code:
|
Re: My command.
Stop double posting, and yes, that's correct. Although I don't see why you would return PLUGIN_CONTINUE. I return PLUGIN_HANDLED for all commands.
|
Re: My command.
return plugin_continue in a say-style registered cmd will show the say text
|
Re: My command.
Sorry about double post.
This from Scripting Tutorial. Code:
Also, note PLUGIN_HANDLED. There are two main return values you should concern yourself with. PLUGIN_CONTINUE generally means "continue with normal operation", and PLUGIN_HANDLED means "block further operation". The differences are subtle but important. For example, when binding a command, you should never return PLUGIN_CONTINUE. But if you return PLUGIN_HANDLED while binding to the "say" command, it will block the player's text from ever appearing. You must be careful with which you choose in certain situations. However, most things are unaffected (such as tasks, events, and other things you will run into later on) |
Re: My command.
My plugin come more worst when put PLUGIN_CONTINUE.It don't say anything and don't give mp5navy.Just respawn.
|
| All times are GMT -4. The time now is 09:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.