09.06.2011, 06:17
Well idk if this works but it returned no errors
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Model = GetVehicleModel(vehicleid);
if(Model == 427 && !ispassenger)
{
GetPlayerArmour(playerid, StoreArmour[playerid]);
}
if(PlayerTied[playerid] != 0)
{
ClearAnimations(playerid);
}
if(PlayerCuffed[playerid] != 0)
{
ClearAnimations(playerid);
}
if(IsACopCar(playerid) || IsAFBICar(playerid) || IsANGCar(playerid))
{
new
Float:x, Float:y, Float:z, vehid;
vehid = GetPlayerVehicleID(playerid);
GetVehicleVelocity(vehid,x, y, z);
if (x >= 0.0) x += 30.0;
else x -= 30.0;
if (y >= 0.0) y += 30.0;
else y -= 30.0;
if (z >= 0.0) z += 30.0;
else z -= 30.0;
SetVehicleVelocity(vehid, x, y, z);
}
return 1;
}