Solved How to freeze player movement ?

XTreme killer

Active member
RIS Admin
Content Writer
PHP:
SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", 0.0);
I want to freeze player movement not his aim.

Any alternative for this code???
@Vertigo
 

Vertigo

⍥????
Staff member
Administrator
C++:
#include<entity_prop_stocks>

// Then use this somewhere in Timer
SetEntityMoveType(client, MOVETYPE_NONE);
Anyway do you want to do the same thing which !freeze command does ? Or is it something different ?
 
Last edited:

Vertigo

⍥????
Staff member
Administrator
C++:
SetEntityMoveType(client, MOVETYPE_WALK);
 

Vertigo

⍥????
Staff member
Administrator
By the way, sourcemod already has !freeze command in built. You can use that as well.
 
Last edited:

Vertigo

⍥????
Staff member
Administrator
No, it doesn't freeze aim. You can still aim and shoot. Only movement is freezed.
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock