Raised This Month: $ Target: $400
 0% 

Block amx command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kimilover
Junior Member
Join Date: Oct 2010
Old 05-12-2013 , 06:55   Block amx command
Reply With Quote #1

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?
kimilover is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-12-2013 , 15:26   Re: Block amx command
Reply With Quote #2

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.
__________________
fysiks is offline
kimilover
Junior Member
Join Date: Oct 2010
Old 05-13-2013 , 06:44   Re: Block amx command
Reply With Quote #3

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

Last edited by kimilover; 05-13-2013 at 06:44.
kimilover is offline
zi443r
Senior Member
Join Date: Mar 2009
Location: Braila,Romania
Old 05-13-2013 , 09:40   Re: Block amx command
Reply With Quote #4

Quote:
Originally Posted by kimilover View Post
ok i have one other question now how i can script a command with access flag w?
in cmdaccess.ini
__________________
zi443r is offline
kimilover
Junior Member
Join Date: Oct 2010
Old 05-13-2013 , 10:13   Re: Block amx command
Reply With Quote #5

Quote:
Originally Posted by zi443r View Post
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.
kimilover is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 05-13-2013 , 09:20   Re: Block amx command
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
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.
__________________
simanovich is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-13-2013 , 15:35   Re: Block amx command
Reply With Quote #7

Use (1<<22)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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