Delete spawned cars CMD?
#2

pawn Code:
new vehToDelete[MAX_VEHICLES] = {-1, ...};

// in your cmd
vehToDelete[vehicle] = CreateVehicle(...)

CMD:deletevehicles(playerid, params[])
{
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        if(vehToDelete[i] != -1)
            DestroyVehicle(i);
    }
    return 1;
}
Reply


Messages In This Thread
Delete spawned cars CMD? - by wumpyc - 26.07.2013, 01:21
Re: Delete spawned cars CMD? - by -Prodigy- - 26.07.2013, 02:05
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 03:14
Re: Delete spawned cars CMD? - by [ABK]Antonio - 26.07.2013, 03:21
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 03:34
Re: Delete spawned cars CMD? - by kartik - 26.07.2013, 05:47
Re: Delete spawned cars CMD? - by ThePhenix - 26.07.2013, 06:13
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 06:23
Re: Delete spawned cars CMD? - by kartik - 26.07.2013, 06:33
Re: Delete spawned cars CMD? - by wumpyc - 26.07.2013, 06:37

Forum Jump:


Users browsing this thread: 2 Guest(s)