26.03.2019, 21:33
Almost ready, there is little left, please help
Watch the video, you will understand
https://www.youtube.com/watch?v=DWdZYdq-E0A
Watch the video, you will understand
https://www.youtube.com/watch?v=DWdZYdq-E0A
PHP код:
new
Float:fPX, Float:fPY, Float:fPZ,
Float:fVX, Float:fVY, Float:fVZ,
Float:object_x, Float:object_y, Float:object_z
Float:zzz;
const Float:fScale = 2.75; // 2.76;
GetPlayerCameraPos(playerid, fPX, fPY, fPZ);
GetPlayerCameraFrontVector(playerid, fVX, fVY, fVZ);
GetPlayerFacingAngle(playerid,zzz);
fVX += floatsin(-zzz+1.5, degrees);
fVY += floatcos(-zzz+1.5, degrees);
object_x = unoccupiedData[PR_origin][0] + (fVX * fScale);
object_y = unoccupiedData[PR_origin][1] + (fVY * fScale);
object_z = unoccupiedData[PR_origin][2] + (fVZ * fScale);
CreateObject(2707, object_x, object_y, object_z, 0.0000000,0.0000000,0.0000000, 100);