04.03.2009, 14:46
pawn Код:
// Top of script
new LastSpawnedVehicle[MAX_PLAYERS];
// OnPlayerConnect
LastSpawnedVehicle[playerid] = 999;
// In you vehicle spawn command
if(LastSpawnedVehicle[playerid] != 999)
{
DestroyVehicle(LastSpawnedVehicle[playerid]);
}
LastSpawnedVehicle[playerid] = AddStaticVehicle/CreateVehicle(bla,bla,bla);