stock Sebessegkorlat(playerid, sebesseg)
{
new
Float:seb, Float:sk, carid,
Float:x, Float:y, Float:z,
Float:Vx, Float:Vy, Float:Vz;
carid = GetPlayerVehicleID(playerid);
GetVehiclePos(carid, x, y, z);
GetVehicleVelocity(carid, Vx, Vy, Vz);
sk = float(sebesseg) / 100.0 / 1.6;
if(!IsPlayerInRangeOfPoint(playerid, sk + 0.05, x + Vx, y + Vy, z + Vz))
{
seb = floatsqroot(Vx*Vx+Vy*Vy+Vz*Vz);
Vx = (Vx / seb) * sk;
Vy = (Vy / seb) * sk;
Vz = (Vz / seb) * sk;
SetVehicleVelocity(carid, Vx, Vy, Vz);
}
return true;
}
Esetleg..