[HOW] Delete Vehicle
#4

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
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;
}
Thanks how about the

" Invalid VehicleID " issue?

i try what Jonny5 says it didn't work but when i try the valid vehicle id it spawns normal
except when i type /v 0 it says

"You've spawned vehicle id '0'"
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: 1 Guest(s)