AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block amx command (https://forums.alliedmods.net/showthread.php?t=215780)

kimilover 05-12-2013 06:55

Block amx command
 
hi guys can i block a command from a plugin? I have a plugin where it has a lot of commands and i want to block a commands but i have 2 problems
1:I dont have the sma file
2:i dont know how i can do it.
Can anyone help me?

fysiks 05-12-2013 15:26

Re: Block amx command
 
Why don't you have the .sma file? Try and get it. If you can't find it, I would suggest not running the plugin.

kimilover 05-13-2013 06:44

Re: Block amx command
 
ok i have one other question now how i can script a command with access flag w?

simanovich 05-13-2013 09:20

Re: Block amx command
 
Quote:

Originally Posted by fysiks (Post 1950730)
Why don't you have the .sma file? Try and get it. If you can't find it, I would suggest not running the plugin.

+1

You can also register the command (and block it with "return 1") and put your plugin in the top of the plugins lists.

Then, when the plugin without sma will try to register the command, it will be failed because the command is alredy registerted.

zi443r 05-13-2013 09:40

Re: Block amx command
 
Quote:

Originally Posted by kimilover (Post 1951050)
ok i have one other question now how i can script a command with access flag w?

in cmdaccess.ini

kimilover 05-13-2013 10:13

Re: Block amx command
 
Quote:

Originally Posted by zi443r (Post 1951130)
in cmdaccess.ini

it is a say command. when you said .restart on chat it do restart. I check on the cmdaccess.ini but this cmd isnt in it.

YamiKaitou 05-13-2013 15:35

Re: Block amx command
 
Use (1<<22)


All times are GMT -4. The time now is 16:20.

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