Raised This Month: $12 Target: $400
 3% 

Command Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
sirmoe
Senior Member
Join Date: Mar 2008
Old 08-05-2008 , 18:18   Re: Command Blocker
Reply With Quote #21

Quote:
Originally Posted by msleeper View Post
I assume that sm_bancommand has an implied sm_blockcommand, so that the command is both blocked -and- bans whoever uses it right?
Good question,


Also sourcebans support for the 'ban' commands please
sirmoe is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-05-2008 , 18:32   Re: Command Blocker
Reply With Quote #22

The ban commands allow the commands to be executed, ban the player, and then block the command from actually doing anything. Just "blocking" the command makes it so the command can't be used without sv_cheats enabled.
bl4nk is offline
Seather
Member
Join Date: Oct 2004
Old 08-09-2008 , 19:07   Re: Command Blocker
Reply With Quote #23

as mentioned before in this thread, there are some commands that sm_blockcommand is not capable of blocking, for example "jointeam" in cs:s

here is some code that fixes that (might have a problem if executed more than once on same command, like in a server.cfg)
Code:
	new flags = GetCommandFlags(command);
	
	if(flags == -1)
		RegConsoleCmd(command, Cmd_Null);
	else
		SetCommandFlags(command, flags|FCVAR_CHEAT);
	
	ReplyToCommand(0, "Command successfully blocked");
...
public Action:Cmd_Null(client, args)
{
	return Plugin_Handled;
}
Seather is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 08-09-2008 , 20:24   Re: Command Blocker
Reply With Quote #24

Could you fix this so it would be case sensative? Otherwise it's bypassable
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
talpa
Member
Join Date: Jun 2007
Old 08-13-2008 , 09:08   Re: Command Blocker
Reply With Quote #25

hi is possible block all script like this:
Quote:
//Spy script - Random auto-disguise from a specified list.
//Script written by Larolaro http://larolaro.blogspot.com

//Feel Free to use this script however you wish - Please credit me where you can.

//This script makes the spy auto-disguise after stabbing, then disguising to classes from a specified list.
//It's much better than an ordinary auto-randomdisguise/auto-lastdisguise because you can eliminate the poor disguises.
//It's great for when your cover gets busted after backstabbing and your disguise gets tainted.
//The auto-disguise toggles through PYRO, DEMOMAN and ENGINEER with everytime you stab.

bind "o" "switch" //This makes the O Key toggle the disguises team colour.

//This next bit is the list of disguises. Using these three disguises are the most effective than any others.

//RED TOGGLER
;alias tglr "tglr1"
;alias tglr1 "disguise 4 2 ;alias tglr tglr2" //PYRO
;alias tglr2 "disguise 7 2 ;alias tglr tglr3" //DEMOMAN
;alias tglr3 "disguise 9 2 ;alias tglr tglr1" //ENGINEER

//BLUE TOGGLER
;alias tglb "tglb1"
;alias tglb1 "disguise 4 1 ;alias tglb tglb2" //PYRO
;alias tglb2 "disguise 7 1 ;alias tglb tglb3" //DEMOMAN
;alias tglb3 "disguise 9 1 ;alias tglb tglb1" //ENGINEER

//For this section the numbers "2" and "3" should be corresponding with your slot2 and slot3 keys
//by default it should work fine but will clash if you have other scripts that use the 2 and 3 keys or you binded your slot2 and slot3 keys to something else.

bind "2" "-attack; slot2; defaulter"
bind "3" "slot3; redstabdisguise"

;alias "setup3" "bind "3" "spyon3""
;alias "setup4" "bind "3" "spyon4""

//Leave this next bit as it is.

;alias "defaulter" "bind "MOUSE1" "+attack""

;alias "spyon2" "-attack; slot2; defaulter"
;alias "spyon3" "slot3; redstabdisguise"
;alias "spyon4" "slot3; bluestabdisguise"

;alias switch "switch1"
;alias switch1 "setup3; redstabdisguise; tglr; alias switch switch2"
;alias switch2 "setup4; bluestabdisguise ; tglb; alias switch switch1"

;alias "bluestabdisguise" "bind "MOUSE1" "+bstabdis""
;alias "+bstabdis" "+attack"
;alias "-bstabdis" "-attack; wait 20; lastdisguise; tglb"

;alias "redstabdisguise" "bind "MOUSE1" "+rstabdis""
tnx for now
talpa is offline
Dragon_belgium
Junior Member
Join Date: Aug 2008
Old 08-13-2008 , 17:37   Re: Command Blocker
Reply With Quote #26

pRED*,

Is it possible to add a command with spaces ?, like
sm_bancommand prop_physics_create props_c17/oildrum001_explosive.mdl
Tryed with " and ' , it takes only the prop_physics_create

Friendly greetings,

Dragon.be
Dragon_belgium is offline
Seather
Member
Join Date: Oct 2004
Old 08-20-2008 , 20:11   Re: Command Blocker
Reply With Quote #27

I noticed a problem with a mod(zombie panic?) specific cmd banner(or blocker) a while back, i think this plugin might have the same problem.(won't apply to the blocking feature)

when the cmd gets banned/registered it gets added to the sm_help list, and as you might guess people may innocently see this command, try it out, and get banned.

Last edited by Seather; 08-20-2008 at 20:19.
Seather is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 08-20-2008 , 22:12   Re: Command Blocker
Reply With Quote #28

Is this plugin no longer needed for TF2 after the last update, or are there still crashing commands out there?
__________________
msleeper is offline
talpa
Member
Join Date: Jun 2007
Old 10-08-2008 , 15:51   Re: Command Blocker
Reply With Quote #29

Quote:
Originally Posted by talpa View Post
hi is possible block all script like this:


tnx for now
up!!!
talpa is offline
Scrat
New Member
Join Date: Jan 2009
Old 01-04-2009 , 12:12   Re: Command Blocker
Reply With Quote #30

Hello, can anyone help...
  • Is this plugin needed anymore?
  • If its needed, Can anyone tell me their block list because I dont really understand what to block.
Thanks all
__________________
Scrat is offline
Reply


Thread Tools
Display Modes

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 19:26.


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