25.09.2012, 05:18
Its Easy
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health >250) return PlayAudioStreamForPlayer(playerid, "link here", X, Y, Z, Distance, 1);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
StopAudioStreamForPlayer(playerid); // Stop the audio stream
return 1;
}