[HELP] Vehicle destroy
#2

I'm not sure if you can destroy a vehicle when it marked as death vehicle. From what I understood, you want to check if the vehicleid is the one the variable holds from the loop, right?
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
    for(new playerid;playerid<MAX_PLAYERS;playerid++)
    {
        if(CreateCar[playerid] != -1 && CreateCar[playerid] == vehicleid)
        {
            DestroyVehicle(vehicleid);
            CreateCar[playerid] = -1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] Vehicle destroy - by beasty - 03.01.2013, 10:04
Re: [HELP] Vehicle destroy - by Konstantinos - 03.01.2013, 10:13
Re: [HELP] Vehicle destroy - by beasty - 03.01.2013, 11:02
Re: [HELP] Vehicle destroy - by Konstantinos - 03.01.2013, 11:29

Forum Jump:


Users browsing this thread: 3 Guest(s)