20.02.2010, 13:48
Is it possible to make bike slower? because it's so fast ;/
Originally Posted by addinol
how could add more than 1 vehicleid ?
GetVehicleVelocity(509 || 510 || 481, X, Y, Z); ?? |
Originally Posted by addinol
so what's VehicleID ? :[
|
Originally Posted by ShortyDmG
Quote:
|
public OnPlayerUpdate(playerid)
{
if (IsPlayerInAnyVehicle(playerid)) // This goes for EVERY vehicle.
{
new id, Float:vX, Float:vY, Float:vZ;
id = GetPlayerVehicleID(playerid);
GetVehicleVelocity(id, vX, vY, vZ);
SetVehicleVelocity(id, vX * 0.9, vY * 0.9, vZ * 0.9);
}
return 1;
}