SetPlayerCameraLookAt
#1

How to use this camera turned here as in the image below:



For example what would the team worked not only in one place but everywhere where, because there is the right kind of car
Help
Reply
#2

they use Image2Textdraws to make like that picture
Reply
#3

I have no photo, and turn the camera
Reply
#4

Well you could try it with this small snippet.
pawn Код:
new File:cpos;
CMD:getcpos(playerid, params[])
{
 new Float:xcp, Float:ycp, Float:zcp;
 GetPlayerCameraPos(playerid, xcp, ycp, zcp);
 new fstr[128];
 format(fstr, sizeof(fstr), "SetPlayerCamerPos(playerid, %f, %f, %f);\r\n", xcp, ycp, zcp);
 cpos = fopen("Camera_coords.txt", io_append);
 fwrite(cpos, fstr);
 fclose(cpos);
 return 1;
}
Set your camera position to what you need and use this command. You can see a samp function written on Scriptfiles-->Camera_coords.txt file. Choose that function and write it into a command or at place where you want the camera pos to be set.
Reply
#5

I need something Tipo such as coordinates in this function but then they are not true test

new Float:CAM[3],Float:POS[3];
GetPlayerCameraPos(playerid, POS[0], POS[1], POS[2]);
GetPlayerCameraFrontVector(playerid, CAM[0], CAM[1], CAM[2]);
CAM[0] = POS[0]+floatmul(CAM[0], 5.0);
CAM[1] = POS[1]+floatmul(CAM[1], 5.0);
CAM[2] = POS[2]+floatmul(CAM[2], 5.0);
SetPlayerCameraPos(playerid, POS[0]-0.2, POS[1]+11.2, POS[2]+0.3);
SetPlayerCameraLookAt(playerid, CAM[0]-0.02, CAM[1]+1.2, CAM[2]+0.1);
Reply
#6

Up...
Reply
#7

help me
Reply
#8

helooo
Reply
#9

help
Reply
#10

https://sampforum.blast.hk/showthread.php?tid=355296 (Under Rules & Guidelines):

You may only bump your thread after 24 hours has passed since the last reply.

You have bumped this thread 3 times in one day.

Also, no one is going to help you when they have no idea what do you want (i didn't understand a single sentence in your post)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)