Quote: "no I have this
:state=1;plrdistwithin=500:state=2
:state=2;scancodekeypressed=33:moveback=200 "
Couple things:
1. moveback doesn't work, nothing happens when I try that command. Same with forceback. However, forcebounce does.
2. In the above code, you've got semicolons where commas should be.
This script can serve as a starting point for what you want to do:
;//test of forceback command
;//when the player presses f, push entity back 200
:state=0:state=1
:state=1,plrdistwithin=100:state=2
:state=2,scancodekeypressed=33:coloff,forcebounce=200,colon
;//end script
You'll need to add code to play the appropriate "ow, my face" animation and sounds, but this should get you started.