09.06.2011, 05:51
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))
{
do
{
new Float:x,Float:y,Float:z,vehid; vehid=GetPlayerVehicleID(playerid);
GetVehicleVelocity(vehid,x,y,z);
SetVehicleVelocity(vehid,x+30,y+30,z+30);
} while(x<200 && y<200 && z<200);
}
return 1;
}