[help]camera points at player
#8

pawn Код:
// OnPlayerRequestClass
SetPlayerCameraPos(playerid, X, Y, Z); // The place where the camera will be
SetPlayerCameraLookAt(playerid, X, Y, Z); // The point the camera will be looking at
SetPlayerFacingAngle(playerid, Angle); // The direction the player will be looking at
How to get coordinates:

1. You have to go to an any server or the debug (the place where you installed GTA SA).
2. You go to the place you want that the player would be standing, type in: /save "your comment".
3. Go to your Documents/GTA San Andreas User Files/SAMP/savedpositions.txt .

When you get the coordinates:

pawn Код:
AddPlayerClass(          0,  293.0157,     -106.2280  ,1001.5156    ,1.6469,0,0,0,0,0,0); // Pistoletas
                                 ^             ^          ^
                                 |             |          |
                                 |             |          |
                                 |             |          |
SetPlayerCameraPos(playerid,     X      ,      Y    ,     Z    );
pawn Код:
AddPlayerClass(0,293.0157,-106.2280,1001.5156,   1.6469   ,0,0,0,0,0,0); // Pistoletas
                                                    ^
                                                    |
                                                    |
                                                    |
                                                    |
SetPlayerCameraPos(playerid,                     Angle            );
Reply


Messages In This Thread
[help]camera points at player - by VG-Josh - 19.11.2011, 17:23
Re: [help]camera points at player - by VG-Josh - 19.11.2011, 17:32
Re: [help]camera points at player - by moadi - 19.11.2011, 17:44
Re: [help]camera points at player - by VG-Josh - 19.11.2011, 17:45
Re: [help]camera points at player - by VG-Josh - 19.11.2011, 17:56
Re: [help]camera points at player - by juraska - 19.11.2011, 18:07
Re: [help]camera points at player - by VG-Josh - 19.11.2011, 18:13
Re: [help]camera points at player - by Unte99 - 19.11.2011, 18:22
Re: [help]camera points at player - by Chrillzen - 19.11.2011, 18:26
Re: [help]camera points at player - by MP2 - 19.11.2011, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)