hide cvar no notification in chat
hide cvar no notification in chat
i want to hide this only cvar whether admin trying to change or server or from another plugin cmd : amx_cvar the_notification "0" I don't want to hide all cvars by doing this amx_show_activity 0 check below screenshot https://image.ibb.co/iqSuWS/hide_cvar.png Main plugin : PHP Code:
PHP Code:
|
Re: hide cvar no notification in chat
Have you tried using return PLUGIN_HANDLED?
|
Re: hide cvar no notification in chat
thanks for reply,
return PLUGIN_HANDLED is for chat that will not work for cvar |
Re: hide cvar no notification in chat
You shouldn't be using the amx_cvar command when setting a cvar from within a plugin. Simply use set_cvar_num().
|
Re: hide cvar no notification in chat
Quote:
i know set_cvar_num() will not give you notification when you change cvar but i want to change that cvar from another plugin |
Re: hide cvar no notification in chat
Quote:
|
Re: hide cvar no notification in chat
Quote:
i want to change cvar from another plugin Please refer my first post |
Re: hide cvar no notification in chat
Quote:
|
Re: hide cvar no notification in chat
Quote:
full plugin set_pcvar_num will work if i change cvar within plugin we won't get any notification PHP Code:
i want to change above cvar from another plugin and i am getting undefined symbol this is another plugin : PHP Code:
|
Re: hide cvar no notification in chat
:facepalm:
Of course you get an undefined symbol, the_notification variable is not defined in your second plugin. Look at set_pcvar_num function prototype. The first argument is: Quote:
Quote:
|
All times are GMT -4. The time now is 11:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.