Quote:
Originally Posted by Shadow_
Could you post a video of what happens?
|
It's been wery hard for me

You may use my code to see trouble:
in your NPC filterscript:
PHP код:
new Cam;
Cam = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 700);//invisible object
AttachObjectToVehicle(Cam, YourNPCVehicle,-2.0,0.0,-2.0,0.0,0.0,0.0);//in my case it's Maveric
In public OnPlayerCommandText:
PHP код:
if (strcmp("/SpyCam", cmdtext, true) == 0)
{
AttachCameraToObject(playerid, Cam);
}
Now if you go away from the NPC and enter /SpyCam, camera spawned in 0,0,0. If you teleport to NPC and enter /SpyCam, camera spawned normally with vehicle.