19.04.2012, 04:17
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;
}