Help - Search - Members - Calendar
Full Version: Help?
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Scripting Discussion
Kerotan
Ok i jus started to trial for a clan and noticed in pcws cl_blockscripts on sad-fix.gif
So my ammo + medpack script didnt work =[
How do i get past this?
Malibu_Stacey
CODE
bind <key> "impulse 10; say_team [medpack]"
bind <key> "impulse 11; say_team [ammo]"


change <key> to whichever keys you want to use them on & edit the stuff after say_team if you want it to look different.
If they don't work then try

CODE
alias med "impulse 10; say_team [medpack]"
alias ammo "impulse 11; say_team [ammo]"
bind <key> med
bind <key> ammo


can't remember which of the 2 gets past blockscripts but one of them definitely does. Think its more likely to be the 2nd one.
Kerotan
ok thanks i tried it but i dunno if the server i tried on was block scripts 0.0
i was using the binds while in pcw so aim guessing the 2nd one will work, hopefully biggrin-fix.gif
obuh
Yes, the 2nd method works. Blockscripts doesn't allow binds with multiple commands in them. You can circumvent this by using aliases, except if they contain +commands.
Diablo_fx
QUOTE (obuh @ Apr 28 2005, 10:25 PM)
Yes, the 2nd method works. Blockscripts doesn't allow binds with multiple commands in them. You can circumvent this by using aliases, except if they contain +commands.

and the certain +/- commands are:
+/-attack
+/-jump
+/-duck
+/-reload

(unsure)
+/-left
+/-right
+/-forward
+/-back
+/-moveright
+/-moveleft

working +/- commands
+/- showscores

just correct me for what i have missed/forgot.
obuh
Yes, just about every command with a "+" is blocked by blockscripts. There are a few exceptions:
CODE
+jlook
+mlook
+use
+showscores


Those commands aren't blocked in aliases when blockscripts is on (I think it's new to 3.0 final). I found these by taking a little look at how scripts are blocked. Here is a short extract of the flowchart showing some tests that are done to know what to block. If it isn't one of those 4 commands listed above, you get the "Scriptng is not allowed on this server" message.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.