Reps , Help , Fast please:S
#1

I need a function that destroy vehicle like "DestroyVehicle(playerid);", I'v tried some functions like:"
Code:
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInVehicle(i, vehid)) return 1;
        }
    }
But its destroy vehicles which are not occupation , please help i want code thats when player death destroy his car, and when exit from server and when exit from vehicle thanks !
Code:
public OnPlayerDisconnect(playerid, reason)
{
//AnyFunction Destroy the playerid vehicle when he leave if he was on vehicle.
return 1;
}
OnPlayerExitVehicle(p...)
{
//Send timer to destroy his vehicle if he not back with 1 min
return 1;
}
OnPlayerDeath
{
//Destroy playerid vehicle
}
Reply


Messages In This Thread
Reps , Help , Fast please:S - by MahdiGames - 28.01.2014, 17:15
Re: Reps , Help , Fast please:S - by Abagail - 28.01.2014, 17:18
Re: Reps , Help , Fast please:S - by Smileys - 28.01.2014, 17:28
Re: Reps , Help , Fast please:S - by MahdiGames - 28.01.2014, 17:33
Re: Reps , Help , Fast please:S - by [WSF]ThA_Devil - 28.01.2014, 17:37
Re: Reps , Help , Fast please:S - by MahdiGames - 28.01.2014, 17:52
Re: Reps , Help , Fast please:S - by [WSF]ThA_Devil - 28.01.2014, 17:55
Re: Reps , Help , Fast please:S - by MahdiGames - 28.01.2014, 17:57
Re: Reps , Help , Fast please:S - by Abagail - 28.01.2014, 17:59
Re: Reps , Help , Fast please:S - by MahdiGames - 28.01.2014, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)