11.06.2013, 16:44
hi
anyone knows how to fix this? i wrote this script but it works for cars only , it doesnt work for bikes, boats and shits
anyone knows how to fix this? i wrote this script but it works for cars only , it doesnt work for bikes, boats and shits
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys & KEY_LOOK_BEHIND)
{
new vehicleid = GetPlayerVehicleID(playerid);
new Float:angle;
GetVehicleZAngle(vehicleid, angle);
new Float:velox, Float:veloy, Float:veloz;
GetVehicleVelocity(vehicleid, velox, veloy, veloz);
velox += floatsin(-angle, degrees);
veloy += floatcos(-angle, degrees);
SetVehicleVelocity(vehicleid, velox, veloy, veloz);
}
}