public OnPlayerDisconnect(playerid, reason){ if(PlayerInfo[playerid][pSpawnVehicle]) //If the player spawned a vehicle. { DestroyVehicle(PlayerInfo[playerid][pSpawnVehicle]); //destroy it. } return 1;}