Raised This Month: $32 Target: $400
 8% 

[ANY] Simple Command Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 06-23-2017 , 02:23   Re: [ANY] Simple Command Blocker
Reply With Quote #11

Quote:
23-6-2017 - Version 1.2.3
- Added a new convar called scb_slay_warning allow you to edit amount of warnings given to users before they get slayed.
- Added a cfg file for you to add your commands there located into "cfg/sourcemod/scb.cfg"
- Fixed double warning messages.
__________________
ambn is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 06-23-2017 , 02:24   Re: [ANY] Simple Command Blocker
Reply With Quote #12

Great! Installing right now thanks!
__________________
Obyboby is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 06-23-2017 , 02:27   Re: [ANY] Simple Command Blocker
Reply With Quote #13

Quote:
Originally Posted by Obyboby View Post
Great! Installing right now thanks!
Haven't tested it my self but it should work, if the cfg did not work , then it must be delayed before getting executed but i'm not sure about that if it happend just tell me
__________________

Last edited by ambn; 06-23-2017 at 02:27.
ambn is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 06-23-2017 , 04:42   Re: [ANY] Simple Command Blocker
Reply With Quote #14

How would I go about adding the commands in the cfg?
Just type
Code:
sm_slaycmd admin
?

Does this slay any non-admin user who types "!admin"?
Or should it be

Code:
sm_slaycmd !admin
or

Code:
sm_slaycmd "!admin"
or

Code:
sm_slaycmd #admin

or

Code:
sm_slaycmd "#admin"
Also where exactly do I set the warning convar and all the rest?
__________________
Obyboby is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 06-23-2017 , 06:44   Re: [ANY] Simple Command Blocker
Reply With Quote #15

Quote:
Originally Posted by Obyboby View Post
How would I go about adding the commands in the cfg?
Just type
Code:
sm_slaycmd admin
?

Does this slay any non-admin user who types "!admin"?
Or should it be

Code:
sm_slaycmd !admin
or

Code:
sm_slaycmd "!admin"
or

Code:
sm_slaycmd #admin

or

Code:
sm_slaycmd "#admin"
Also where exactly do I set the warning convar and all the rest?
Quote:
sm_slaycmd sm_admin
__________________
ambn is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 06-23-2017 , 07:27   Re: [ANY] Simple Command Blocker
Reply With Quote #16

Lol I feel so dumb right now :p
Thanks
And what about configuring the rest (warnings, etc) isn't there a .cfg file for that like other plugins?
__________________
Obyboby is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 06-23-2017 , 07:29   Re: [ANY] Simple Command Blocker
Reply With Quote #17

Quote:
Originally Posted by Obyboby View Post
Lol I feel so dumb right now :p
Thanks
And what about configuring the rest (warnings, etc) isn't there a .cfg file for that like other plugins?
What do you mena? You mean like translations?
__________________
ambn is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 06-23-2017 , 07:32   Re: [ANY] Simple Command Blocker
Reply With Quote #18

Quote:
Originally Posted by ambn View Post
What do you mena? You mean like translations?
No no where do I set the convars for like, the number of warnings before a slay occurs, etc
You said "do not put in server.cfg" so where do I add them?
Other plugins have a full CFG file with pre-set values (convar "0" or "1" etc etc) I don't understand why yours doesn't.
There's a CFG file but only to add the commands to be blocked. what about the rest?
Where do they go? Do I need to make another .cfg file?
__________________
Obyboby is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 06-23-2017 , 07:37   Re: [ANY] Simple Command Blocker
Reply With Quote #19

Quote:
Originally Posted by Obyboby View Post
No no where do I set the convars for like, the number of warnings before a slay occurs, etc
You said "do not put in server.cfg" so where do I add them?
Other plugins have a full CFG file with pre-set values (convar "0" or "1" etc etc) I don't understand why yours doesn't.
There's a CFG file but only to add the commands to be blocked. what about the rest?
Where do they go? Do I need to make another .cfg file?
Awh now i got what you mean, those cinvars can be set in any cfg file like server.cfg or even scb.cfg anywhere you like to.
__________________
ambn is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 06-23-2017 , 07:43   Re: [ANY] Simple Command Blocker
Reply With Quote #20

Quote:
Originally Posted by ambn View Post
Awh now i got what you mean, those cinvars can be set in any cfg file like server.cfg or even scb.cfg anywhere you like to.
Thank you, I'll add them inside scb.cfg

EDIT: so if I set:

Code:
scb_slay_warning "1"
when does the slay occurs?
As soon as some user types !admin, or do they get ONE WARNING and THE NEXT time they type, they get slayed? sorry but im not home yet


EDIT: huh....I'm trying to make some normal players type "!admin" in chat but they don't get any warning nor they are slayed.. just the sourcemod's message "you do not have access to this command"
why?
__________________

Last edited by Obyboby; 06-23-2017 at 08:33.
Obyboby 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 02:42.


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