24.06.2012, 20:46
Quote:
Код:
stock SetVehicleForwardVelocity(playerid,Float:Velocity, Float:Z1) { new Float:Getx1, Float:Gety1, Float:Getz1; new Float:AngleZ1; new Float:SpeedX1, Float:SpeedY1; new Float:Mulx1, Float:Muly1; new Vehicle = GetPlayerVehicleID(playerid); GetVehicleVelocity(Vehicle, Getx1 ,Gety1 ,Getz1); GetVehicleZAngle(Vehicle,AngleZ1); SpeedX1 = floatsin(-AngleZ1, degrees); SpeedY1 = floatcos(-AngleZ1, degrees); Mulx1 = floatmul(Velocity, SpeedX1); Muly1 = floatmul(Velocity, SpeedY1); SetVehicleVelocity(Vehicle, floatadd(Mulx1,Getx1), floatadd(Muly1, Gety1), floatadd(Getz1, Z1)); return 1; } |
P.S some server using fly script that can passed through wall. just like jump script..