Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock vehicleInfo(vehicleid, type, &Float:x, &Float:y, &Float:z, &Float:a)
- {
- if(!IsValidVehicle(vehicleid)) return 0;
- new Float:x2, Float:y2, Float:z2;
- GetVehicleModelInfo(GetVehicleModel(vehicleid), type, x, y, z);
- GetVehiclePos(vehicleid, x2, y2 ,z2);
- GetVehicleZAngle(vehicleid,a);
- z2 += z;
- x2 += (y * floatsin(-a, degrees));
- y2 += (y * floatcos(-a, degrees));
- a += 270.0;
- x2 += (x * floatsin(-a, degrees));
- y2 += (x * floatcos(-a, degrees));
- a -= 270.0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement