31.03.2009, 18:12
pawn Код:
// Top of script
new LastSpawnedCar[MAX_PLAYERS];
// OnPlayerConnect
LastSpawnedCar[playerid] = 0;
// Command
if(LastSpawnedCar[playerid] != 0)
{
DestroyVehicle(LastSpawnedCar[playerid]);
}
LastSpawnedCar[playerid] = CreateVehicle(...,...,...,...,...,...,...);