18.07.2011, 08:02
In my last reply I added a few units to the y position so the camera would be in front of, and look at, the player. You can go into debug and get new coordinates. The method I use is find the place I want the player to stand, type /save, then walk a few steps forward (without changing camera view), and type /save once more. Then I set up my functions like so:
pawn Код:
SetPlayerPos( playerid, /* x, y, z from first saved line */ );
SetPlayerFacingAngle( playerid, /* a from first saved line */ );
SetPlayerCameraPos( playerid, /* x, y, z from second line */ );
SetPlayerCameraLookAt( playerid, /* x, y, z from first saved line */ );