PlayAudioStreamForPlayer on entering a car
#2

Under OnPlayerState add
pawn Код:
new modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(modelid == /*SFPD Vehicle ID*/)
{
       PlayAudioStreamForPlayer(playerid,"link");
}
Under onplayerexitvehicle
pawn Код:
new modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(modelid == /*SFPD Vehicle ID*/)
{
       StopAudioStreamForPlayer(playerid);
}
Reply


Messages In This Thread
PlayAudioStreamForPlayer on entering a car - by ShawnMiller1337 - 21.01.2012, 01:25
Re: PlayAudioStreamForPlayer on entering a car - by Tanush123 - 21.01.2012, 03:02

Forum Jump:


Users browsing this thread: 1 Guest(s)