Vehicle Death Problem
#1

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

PHP код:
public OnVehicleDeath(playeridvehicleid)
{
    
DestroyObject(sheminal[vehicleid][0]);
    
DestroyObject(sheminal[vehicleid][1]);
    
DestroyObject(sheminal[vehicleid][2]);
    
DestroyObject(sheminal[vehicleid][3]);
    
sheminalll[vehicleid] = 0;
    
StopAudioStreamForPlayer(playerid);
    return 
1
This is what it originally was with no errors

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;

Iv already done onplayerexitvehicle, but i want it to also stop when something happens to the veh
Reply


Messages In This Thread
Vehicle Death Problem - by Pboachie - 29.06.2014, 05:13
Re: Vehicle Death Problem - by MotherDucker - 29.06.2014, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)