unregister_clcmd
hello :)
After i have registed a command e.g.: register_clcmd("zat_on","block_zaton",ADMIN_M AP) is there a way to unregister it? unregister_clcmd("zat_on") :up: = what i want but it doesnt exist ty in advance |
Re: unregister_clcmd
Maby you could overwrite it, to change the called func to an empty one. I don't know if it will work though.
Code:
|
Re: unregister_clcmd
doesnt work :(
|
Re: unregister_clcmd
i've looked at it again and it seems the second time on registering a clcmd it ignores it, it only lisens to the register_clcmd the 1st time, perhaps a amxx bug?
|
Re: unregister_clcmd
Nawh, seems pretty logical, if the command allready exist it probably wont overwrite it.
Just make a global/cvar check on the beginning of that function if (c)var is 1 continue with func. if not, return. |
Re: unregister_clcmd
xD i dont know how to script that please can you give an example, pleease
thank you very very very much! your help is much appreciated |
Re: unregister_clcmd
Code:
|
Re: unregister_clcmd
Rose, you know how to do this...
Code:
|
Re: unregister_clcmd
Quote:
|
Re: unregister_clcmd
I got this working in the end =) thanks for your help people i have given you all karma
|
| All times are GMT -4. The time now is 22:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.