07.12.2012, 10:30
SetPlayerCameraLookAt
07.12.2012, 11:11
they use Image2Textdraws to make like that picture
07.12.2012, 12:58
I have no photo, and turn the camera
07.12.2012, 13:26
Well you could try it with this small snippet.
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.
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;
}
07.12.2012, 14:20
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);
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);
07.12.2012, 18:45
Up...
08.12.2012, 07:26
help me
08.12.2012, 11:02
helooo
08.12.2012, 19:38
help
12.12.2012, 04:53
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)
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)
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)