Page 1 of 1

TS Script block

Posted: Mon Nov 22, 2021 11:48 pm
by greenie
FAQ
Q) What sort of issues will blocking keyboard movement make?
A) If someone uses the keyboard to look with ( basicly bind a +left, instead of the normal bind a +stafeleft) they will not be albe to do this.
Personaly i dont think anyone still uses the keyboard to look with, and blocking these commands is proberbly most effective against scripts

Q) What sort of issues will blocking cvars make?
A) None i can think off unless they using keyboard to look with. And need to change the cvar often(Witch in effect would be like changing the sensitivity cvar while playing)

Q) What sort of isses will blocking "dual attack" make?
A) Blocking this might piss alot of ppl off, but other then that.

Q) XXXX is in the logs and tried to do XXXX, should i ban him?
A) Thats your choice, but remember that the client tried to change cl_pitchspeed, could be something as stupid has him having cl_pitchspeed X in his config.cfg ( For some reason )

Q) My logs get spammed by XX used XXX like 100 times
A) The logs are writen for every time the user is doing it, that means if i do +left in the console. And the server is running at 100fps this it gets logged 100times a sec

Q) Why does ppl that use +left / +right get slaped?
A) Since there is not simple way to block the effect, we instead have to slap the user. So stop the players from abusing it, they get slapped with damange

Q) Does this plugin use alot of CPU?
A) No.

Q) Cant you just block scripts that include +attack?
A) no, not without a client side modifikation.

Q) I found a script that this plugin does not "block" can you please update the plugin?
A) I might, if you pm the script to me via either the TS boards or AMXX boards ( My name on them is EKS )

Installing the plugin:
1)Install the plugin like any other
2)Make sure the engine module is running
3)add sv_scriptblock / sv_script to amxx.cfg ( Remember cvars will only be checked on map restart)

sv_script 3 // 0 = Loging and echo disabled | 1 = Logs when someone is doing something restriced by the plugin | 2 = Echos when someone is doing something thats restriced | 3 = echo and log
sv_scriptblock 11

// Add the vaules together. (everything is 15 )
1 = Block keyboard looking // This is by far the thing thats gonna mess up most scripts
2 = Block holding both attack1 and 2 // Blocking players +attack and +attack2 at the same time
8 = Punish players using +left +right ( Since the plugin does not have a way to block the effect, we just slap the user instead)

Credits:
Twilight Suzuka <-> For example scripts & help
Ops in #AMXmod @ Quakenet for alot of help ( + AssKicker & CheesyPeteza )

Changelog
1.0.0 (16.10-2004)
- First version

plugin