[HOW] Delete Vehicle
#3

Maybe it can help you

pawn Код:
//Top
new LastCarCreated = -1;

//   /v
LastCarCreated = CreateVehicle(veh, x, y, z, 0, -1, -1, 0);
pawn Код:
CMD:v(playerid, params[])
{
    if(LastCarCreated == -1)
        SendClientMessage(playerid, COLOR_YELLOW, "No car created");

    DestroyVehicle(LastCarCreated);
    SendClientMessage(playerid, COLOR_YELLOW, "You deleted the last created car.");
    LastCarCreated = -1;
    return true;
}
Reply


Messages In This Thread
[HOW] Delete Vehicle - by RollTi - 19.04.2012, 03:54
Re: [HOW] Delete Vehicle - by Jonny5 - 19.04.2012, 04:10
Re: [HOW] Delete Vehicle - by ViniBorn - 19.04.2012, 04:17
Re: [HOW] Delete Vehicle - by RollTi - 19.04.2012, 04:20
Re: [HOW] Delete Vehicle - by ViniBorn - 19.04.2012, 04:26
Re: [HOW] Delete Vehicle - by RollTi - 19.04.2012, 04:28

Forum Jump:


Users browsing this thread: 2 Guest(s)