29.06.2014, 05:13
How can i make it so that when a vehicle a player is in is destroyed, it stops streaming the radio.
Here is what i tried but gave me an error
This is what it originally was with no errors
Iv already done onplayerexitvehicle, but i want it to also stop when something happens to the veh
Here is what i tried but gave me an error
PHP код:
public OnVehicleDeath(playerid, vehicleid)
{
DestroyObject(sheminal[vehicleid][0]);
DestroyObject(sheminal[vehicleid][1]);
DestroyObject(sheminal[vehicleid][2]);
DestroyObject(sheminal[vehicleid][3]);
sheminalll[vehicleid] = 0;
StopAudioStreamForPlayer(playerid);
return 1;
PHP код:
public OnVehicleDeath(vehicleid)
{
DestroyObject(sheminal[vehicleid][0]);
DestroyObject(sheminal[vehicleid][1]);
DestroyObject(sheminal[vehicleid][2]);
DestroyObject(sheminal[vehicleid][3]);
sheminalll[vehicleid] = 0;
return 1;
}