Help with a camera system

Hello, I wonder how it would freeze
a player, I mean freezing the keys, you can not walk or move
and if you can move the camera, move the mouse, it was decided to create an object and the object spec, but I wonder if there would be another way without the need to use the object.

Use TogglePlayerControlable(playerid, false);

and TogglePlayerSpectating(playerid, true);

Please REP+

You can use ApplyAnimation. It has a 'loop' parameter, so you can alternatively freeze the player in an 'idle' animation. (They appear to be standing still, but they cannot move around and can still rotate the camera)
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
Something like this:
pawn Код:
ApplyAnimation(playerid, "ped", "IDLE_stance", 4.1, 1, 1, 1, 0, 0, 1);
Note, any form of ClearAnimations or any other animations may override this animation and allow the player to break the animation. Thus being able to move around again.

Forum Jump:

Users browsing this thread: 1 Guest(s)