27.12.2010, 17:56
(
Последний раз редактировалось park4bmx; 27.12.2010 в 18:24.
Причина: SPLVED
)
Hi im trying to make VehicleJumpFunction
And this is how im doing it But i dont know how exactly to do it so i need help
I want the vehicle to go up but i dont know how to do it?
Ok i found the problem it was simple
i just needed to add vehy+15 so it works but that would make it go backwards not UP
So i added +15 to vehz and then it was vehz+15 and i changed the +50 to vehy
And it works perfectly
So the working Code is
And this is how im doing it But i dont know how exactly to do it so i need help
pawn Код:
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
new Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(currentveh, vehx, vehy, vehz);
SetVehiclePos(currentveh, vehx, +50, vehz);
Ok i found the problem it was simple
i just needed to add vehy+15 so it works but that would make it go backwards not UP
So i added +15 to vehz and then it was vehz+15 and i changed the +50 to vehy
And it works perfectly
So the working Code is
pawn Код:
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
new Float:vehx, Float:vehy, Float:vehz;
GetVehiclePos(currentveh, vehx, vehy, vehz);
SetVehiclePos(currentveh, vehx, vehy, vehz+15);