ok, I changed my code
pawn Code:
//new Float:x2 = x + (120 * floatsin(-(a + 90), degrees));
//new Float:y2 = y + (120 * floatcos(-(a + 90), degrees));
to
pawn Code:
new Float:x2, Float:y2, Float:z2, Float:heading, Float:attitude, Float:bank;
GetVehicleRotation(id, heading, attitude, bank);
GetXYZOfVehicle(id, x2, y2, z2, heading/*pitch*/, 120.0);
#pragma unused z2
#pragma unused attitude
#pragma unused bank
yet it doesn't work, I can't exactly tell what's happening. as soon as I shoot my missile exploded, it did no explode instantly with my previous code.. and I have a check to see if it's your vehicle the missile shot from it should not even check that vehicle..
I'll try to figure out where the missile comes out from this time
Edit: ok one, it doesn't work
two, if your turned around, at around 160 - 200 z angle, it fires out behind lol, it worked infront with the previous code