[help]camera points at player -
VG-Josh - 19.11.2011
Hey guys
how do i make it so when you are choosing your player you see the player because at the moment the camera faces away from the player...
Please help?
i need the camera to face the player when choosing the player
Re: [help]camera points at player -
VG-Josh - 19.11.2011
Bump
i really need this like NOW. Thanks
Re: [help]camera points at player -
moadi - 19.11.2011
Under OnPlayerRequestClass
pawn Код:
SetPlayerCameraLookAt(playerid,float:x,float:y,float:z);
Re: [help]camera points at player -
VG-Josh - 19.11.2011
Quote:
Originally Posted by moadi
Under OnPlayerRequestClass
pawn Код:
SetPlayerCameraLookAt(playerid,float:x,float:y,float:z);
|
what should i put in x y and z?
Re: [help]camera points at player -
VG-Josh - 19.11.2011
Anyone?
Re: [help]camera points at player -
juraska - 19.11.2011
SetPlayerFacingAngle(playerid,Float:ang); you should put your r pos in SetPlayerFacingAngle
Re: [help]camera points at player -
VG-Josh - 19.11.2011
Quote:
Originally Posted by juraska
SetPlayerFacingAngle(playerid,Float:ang); you should put your r pos in SetPlayerFacingAngle
|
what is r? sorry i have only just started coding samp
Re: [help]camera points at player -
Unte99 - 19.11.2011
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 );
Re: [help]camera points at player -
Chrillzen - 19.11.2011
/save lol then goto documents > gtaa user files > SAMP > savedpositions, after the fourth comma copy the code and paste it on SetPlayerFacingAngle(playerid,Float:ang);
Re: [help]camera points at player -
MP2 - 19.11.2011
You need to set the coordinates in SetPlayerCameeLookAt to those of the players position.