PHP код:
public OnPlayerConnect(playerid)
{
SpawnedVehicle[playerid] = INVALID_VEHICLE_ID;
}
//also
public OnPlayerDisconnect(playerid, reason)
{
DestroyVehicle(SpawnedVehicle[playerid]);
SpawnedVehicle[playerid] = INVALID_VEHICLE_ID;
}
I hope that will work.