Destroy Vehicle -lil problem
#3

my destroyvehicle stock
pawn Код:
stock DestroyPVehicle(playerid, bool:destroycaralways  = false)
{
    if(carvar[playerid] == INVALID_VEHICLE_ID) return 0;
    if(destroycaralways == true)
    {
        DestroyVehicle(carvar[playerid]);
    }
    else
    {
        if(!IsVehicleOccupied(carvar[playerid]))
        {
            DestroyVehicle(carvar[playerid]);
        }
        else return 0;
    }
    carvar[playerid] = INVALID_VEHICLE_ID;
    return 1;
}
Reply


Messages In This Thread
Destroy Vehicle -lil problem - by FlawL3x - 14.02.2012, 19:57
Re: Destroy Vehicle -lil problem - by Jefff - 14.02.2012, 20:00
Re: Destroy Vehicle -lil problem - by FlawL3x - 14.02.2012, 20:08
Re: Destroy Vehicle -lil problem - by Toreno - 14.02.2012, 20:27
Re: Destroy Vehicle -lil problem - by FlawL3x - 14.02.2012, 20:36
Re: Destroy Vehicle -lil problem - by Toreno - 14.02.2012, 20:50
Re: Destroy Vehicle -lil problem - by FlawL3x - 15.02.2012, 19:40
Re: Destroy Vehicle -lil problem - by FlawL3x - 16.02.2012, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)