Hiding said '' register_clcmd ''
Quote:
And the 2. thing, how can I make, that if the word hi is in chat, that it does the function: Like that .hi, _hi,/hi I don't want to regiser this, is there an other way? |
Re: Hiding said '' register_clcmd ''
Either register the three commands or hook SayText (not recommended).
Return PLUGIN_HANDLED in your command to avoid showing it, PLUGIN_CONTINUE to let the server continue processing it (which will end up in it being sent to the chat). |
Re: Hiding said '' register_clcmd ''
Hook "say" and read args there.
|
Re: Hiding said '' register_clcmd ''
Best is to register all commands and let amxx check them in client_command.
Hook say cmd is rather when you want to detect a word in a sentence. You can use this stock to register all commands : PHP Code:
Then, do : register_saycmd("hi", ... /hi, .hi will work in chat, say and say_team, and also in console. |
Re: Hiding said '' register_clcmd ''
Your stock's name fails.
|
Re: Hiding said '' register_clcmd ''
Quote:
|
Re: Hiding said '' register_clcmd ''
Quote:
|
Re: Hiding said '' register_clcmd ''
Dear God, what a tragedy.
|
Re: Hiding said '' register_clcmd ''
Quote:
|
Re: Hiding said '' register_clcmd ''
Quote:
|
| All times are GMT -4. The time now is 17:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.