How to destroy another vehicle after spawning a new one? [+1 Rep]
#4

Here's an example

pawn Code:
new Car[MAX_PLAYERS] = 0;
CMD:car(playerid, params[])
{
    if(Car[playerid] != 0) DestroyVehicle(Car[playerid]); //destroy it, then we continue down the script
    Car[playerid] = CreateVehicle(blah blah blah);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)