04/10/2020 19:57
Tente desse jeito (não testei):
Código PHP:
IncreaseVehicleSpeed(playerid, Float:percentValue) //de 0.0 até 1.0
{
new Float:vx, Float:vy, Float:vz, vehicleid = GetPlayerVehicleID(playerid);
GetVehicleVelocity(vehicleid, vx, vy, vz);
vx += percentValue * vx;
vy += percentValue * vy;
vz += percentValue * vz;
SetVehicleVelocity(vehicleid, vx, vy, vz);
return 1;
}