09.09.2010, 14:33
Get the vehicle the main player is driving:
Check who else is in the car that isn't the driver:
Play them the audio.
So to conclude:
That will play the audio to everybody but the driver that's in that vehicle.
Code:
new VehID = GetPlayerVehicleID(playerid);
Code:
for(new i = 0; i < GetMaxPlayers(); i++ )
{
if(GetPlayerVehicleID(i) == VehID && GetPlayerVehicleSeat(i) != 0)
Code:
Audio_Play(i,audioid, pause, loop, downmix);
Code:
new VehID = GetPlayerVehicleID(playerid);
for(new i = 0; i < GetMaxPlayers(); i++ )
{
if(GetPlayerVehicleID(i) == VehID && GetPlayerVehicleSeat(i) != 0)
{
Audio_Play(i,audioid, pause, loop, downmix);
}
}

