Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / limit movement script

Author
Message
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 7th Apr 2011 04:30
Is there a script which prevents the player from moving forward and backward, but allow the player to still preform all other movements?

If no such script exists, then is there a script which freezes the player's movement but allows the player to shoot and turn?
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 8th Apr 2011 06:46
I think plrfreeze will do what you want.

Usage:

:state=1:plrfreeze=100

Freeze player movement for 100 milliseconds.

I've used this command and was still able to use the mouse to look around, so it should work.
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 10th Apr 2011 21:41
thanks
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 12th Apr 2011 11:26
Is there a command alike plrfreeze that switches the variable on and off? so if variable1 = 1 (freezeplayer switch on), if variable1 = 0 (freezeplayer switch off)?
Thanks

http://www.flashstargamecreations.webs.com
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 12th Apr 2011 23:00 Edited at: 12th Apr 2011 23:01
Nope. But what you can do is set a variable, then check that variable. If it's 1, call plrfreeze=100 and if 0 then call plrfreeze=0 to re-enable the movement or alternatively, just let the 100 milliseconds go by and then the player can move again.
Michael Thompson
16
Years of Service
User Offline
Joined: 15th Aug 2008
Location: Behind you (if not, in australia)
Posted: 20th Apr 2011 09:19
Thanks... That is really annoying tho. I think that the way it should work is 1 and 0, and then u just freeze the player, start a seperate timer, and once the timer is x, you can unfreze the player. I think that would be much more logical. Anyway, thanks.

http://www.flashstargamecreations.webs.com

Login to post a reply

Server time is: 2024-11-24 08:45:35
Your offset time is: 2024-11-24 08:45:35