Advertisement
Johurt

[FNC] vehicleInfo

Apr 20th, 2013
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.54 KB | None | 0 0
  1. stock vehicleInfo(vehicleid, type, &Float:x, &Float:y, &Float:z, &Float:a)
  2. {
  3.      if(!IsValidVehicle(vehicleid)) return 0;
  4.      new Float:x2, Float:y2, Float:z2;
  5.      GetVehicleModelInfo(GetVehicleModel(vehicleid), type, x, y, z);
  6.      GetVehiclePos(vehicleid, x2, y2 ,z2);
  7.      GetVehicleZAngle(vehicleid,a);
  8.      z2 += z;
  9.      x2 += (y * floatsin(-a, degrees));
  10.      y2 += (y * floatcos(-a, degrees));
  11.      a += 270.0;
  12.      x2 += (x * floatsin(-a, degrees));
  13.      y2 += (x * floatcos(-a, degrees));
  14.      a -= 270.0;
  15.      return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement