21.01.2012, 01:25
How would I make it so when you enter a SFPD cop car I can play audio with PlayAudioStreamForPlayer and make it stop when they leave the cop car
new modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(modelid == /*SFPD Vehicle ID*/)
{
PlayAudioStreamForPlayer(playerid,"link");
}
new modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(modelid == /*SFPD Vehicle ID*/)
{
StopAudioStreamForPlayer(playerid);
}